protected function catchError(Exception $exception)
    {
        $exceptionInterpreterService = $this->getServiceLocator()->get(ExceptionInterpreterService::SERVICE_ID);
        $interpretor = $exceptionInterpreterService->getExceptionInterpreter($exception);
        $interpretor->getResponse()->send();
    }
protected function catchError(Exception $exception)
    {
        $exceptionInterpreterService = $this->getServiceLocator()->get(ExceptionInterpreterService::SERVICE_ID);
        $interpretor = $exceptionInterpreterService->getExceptionInterpreter($exception);
        $interpretor->getResponse()->send();
    }
protected function catchError ( Exception $ exception ) { $ exceptionInterpreterService = $ this -> getServiceLocator ( ) -> get ( ExceptionInterpreterService :: SERVICE_ID ) ; $ interpretor = $ exceptionInterpreterService -> getExceptionInterpreter ( $ exception ) ; $ interpretor -> getResponse ( ) -> send ( ) ; }
Catch any errors
return a http response in function of client accepted mime type

@param Exception $exception
Catch any errors return a http response in function of client accepted mime type