Exemplo n.º 1
0
 /**
  * Notify handlers about exception
  *
  * @param RequestDescriptor $requestDescriptor Socket operation object
  * @param SocketException   $exception Thrown exception
  *
  * @return void
  * @throws \Exception
  */
 protected function callExceptionSubscribers(RequestDescriptor $requestDescriptor, SocketException $exception)
 {
     try {
         $this->eventCaller->setCurrentOperation($requestDescriptor);
         $this->eventCaller->callExceptionSubscribers($requestDescriptor, $exception);
         $this->eventCaller->clearCurrentOperation();
     } catch (\Exception $e) {
         $this->eventCaller->clearCurrentOperation();
         throw $e;
     }
 }