public function notFoundHttpException(NotFoundHttpException $exception)
    {
        $statuCode = $exception->getStatusCode();
        $error = [[
            'status' => $statuCode,
            'code'   => $this->getCode('not_found_http'),
            'source' => ['pointer' => $exception->getFile().':'.$exception->getLine()],
            'title'  => $this->getDescription($exception),
            'detail' => $this->getNotFoundMessage($exception),
        ]];

        $this->jsonApiResponse->setStatus($statuCode);
        $this->jsonApiResponse->setErrors($error);
    }
public function notFoundHttpException(NotFoundHttpException $exception)
    {
        $statuCode = $exception->getStatusCode();
        $error = [[
            'status' => $statuCode,
            'code'   => $this->getCode('not_found_http'),
            'source' => ['pointer' => $exception->getFile().':'.$exception->getLine()],
            'title'  => $this->getDescription($exception),
            'detail' => $this->getNotFoundMessage($exception),
        ]];

        $this->jsonApiResponse->setStatus($statuCode);
        $this->jsonApiResponse->setErrors($error);
    }
public function notFoundHttpException ( NotFoundHttpException $ exception ) { $ statuCode = $ exception -> getStatusCode ( ) ; $ error = [ [ 'status' => $ statuCode , 'code' => $ this -> getCode ( 'not_found_http' ) , 'source' => [ 'pointer' => $ exception -> getFile ( ) . ':' . $ exception -> getLine ( ) ] , 'title' => $ this -> getDescription ( $ exception ) , 'detail' => $ this -> getNotFoundMessage ( $ exception ) , ] ] ; $ this -> jsonApiResponse -> setStatus ( $ statuCode ) ; $ this -> jsonApiResponse -> setErrors ( $ error ) ; }
Set response parameters to NotFoundHttpException.

@param  NotFoundHttpException $exception
Set response parameters to NotFoundHttpException .