Esempio n. 1
0
 protected function errorResponse(NSH_Exception $nshException)
 {
     $responseObject = $this->nshResponse;
     unset($responseObject['response']);
     $httpStatus = $nshException->getHttpStatusCode();
     $responseObject['status'] = $nshException->getCode();
     $responseObject['message'] = $nshException->getMessage();
     $responseObject['errorDetail'] = $nshException->getErrorDetail();
     $this->response($responseObject, $httpStatus);
 }