protected function prepareResponse(Request $request, Exception $e)
    {
        if ($this->isHttpException($e)) {
            return $this->createResponse($this->renderHttpException($e, $request), $e);
        } else {
            return $this->createResponse($this->convertExceptionToResponse($e, $request), $e);
        }
    }
protected function prepareResponse(Request $request, Exception $e)
    {
        if ($this->isHttpException($e)) {
            return $this->createResponse($this->renderHttpException($e, $request), $e);
        } else {
            return $this->createResponse($this->convertExceptionToResponse($e, $request), $e);
        }
    }
protected function prepareResponse ( Request $ request , Exception $ e ) { if ( $ this -> isHttpException ( $ e ) ) { return $ this -> createResponse ( $ this -> renderHttpException ( $ e , $ request ) , $ e ) ; } else { return $ this -> createResponse ( $ this -> convertExceptionToResponse ( $ e , $ request ) , $ e ) ; } }
Prepare response containing exception render.

@param  \Nova\Http\Request  $request
@param  \Exception $e
@return \Symfony\Component\HttpFoundation\Response
Prepare response containing exception render .