/** * Verarbeitet den JsonRPC Request mit der eigenen Ausnahmeklasse * @param Zend_Server_Method_Definition $invocable * @param array $params * @return mixed */ protected function _dispatch(Zend_Server_Method_Definition $invocable, array $params) { try { return parent::_dispatch($invocable, $params); } catch (Exception $exception) { $this->_logException($exception); if ($exception instanceof Dragon_Application_Exception_Abstract) { $this->fault($exception->getMessage(), $exception->getCode(), $exception->getData()); } else { $this->fault($exception->getMessage(), $exception->getCode(), $exception); } } }