protected function createResponse($response, Exception $e)
    {
        $response = new HttpResponse($response->getContent(), $response->getStatusCode(), $response->headers->all());

        return $response->withException($e);
    }
protected function createResponse($response, Exception $e)
    {
        $response = new HttpResponse($response->getContent(), $response->getStatusCode(), $response->headers->all());

        return $response->withException($e);
    }
protected function createResponse ( $ response , Exception $ e ) { $ response = new HttpResponse ( $ response -> getContent ( ) , $ response -> getStatusCode ( ) , $ response -> headers -> all ( ) ) ; return $ response -> withException ( $ e ) ; }
Map exception into a Nova response.

@param  \Symfony\Component\HttpFoundation\Response  $response
@param  \Exception  $e
@return \Nova\Http\Response
Map exception into a Nova response .