/** * Exception handler * * @param Exception $e */ public function exceptionHandler($e) { $response = new Response(); $response->setException(get_class($e)); $response->setExceptionMessage($e->getMessage()); $response->setHasException(true); $this->transport->reply($response); }