| @@ 70-85 (lines=16) @@ | ||
| 67 | * @return void |
|
| 68 | * @throws \Exception |
|
| 69 | */ |
|
| 70 | protected function callSocketSubscribers(RequestDescriptor $requestDescriptor, Event $event) |
|
| 71 | { |
|
| 72 | try { |
|
| 73 | $this->eventCaller->setCurrentOperation($requestDescriptor); |
|
| 74 | $this->eventCaller->callSocketSubscribers( |
|
| 75 | $requestDescriptor, |
|
| 76 | $event, |
|
| 77 | $this->executor, |
|
| 78 | $this->executionContext |
|
| 79 | ); |
|
| 80 | $this->eventCaller->clearCurrentOperation(); |
|
| 81 | } catch (\Exception $e) { |
|
| 82 | $this->eventCaller->clearCurrentOperation(); |
|
| 83 | throw $e; |
|
| 84 | } |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * Notify handlers about exception |
|
| @@ 96-113 (lines=18) @@ | ||
| 93 | * @return void |
|
| 94 | * @throws \Exception |
|
| 95 | */ |
|
| 96 | protected function callExceptionSubscribers( |
|
| 97 | RequestDescriptor $requestDescriptor, |
|
| 98 | SocketException $exception |
|
| 99 | ) { |
|
| 100 | try { |
|
| 101 | $this->eventCaller->setCurrentOperation($requestDescriptor); |
|
| 102 | $this->eventCaller->callExceptionSubscribers( |
|
| 103 | $requestDescriptor, |
|
| 104 | $exception, |
|
| 105 | $this->executor, |
|
| 106 | $this->executionContext |
|
| 107 | ); |
|
| 108 | $this->eventCaller->clearCurrentOperation(); |
|
| 109 | } catch (\Exception $e) { |
|
| 110 | $this->eventCaller->clearCurrentOperation(); |
|
| 111 | throw $e; |
|
| 112 | } |
|
| 113 | } |
|
| 114 | ||
| 115 | /** |
|
| 116 | * Create simple event |
|