original_string: protected function createResponse($response, Exception $e)
      {
          $response = new HttpResponse($response->getContent(), $response->getStatusCode(), $response->headers->all());
  
          return $response->withException($e);
      }
code: protected function createResponse($response, Exception $e)
      {
          $response = new HttpResponse($response->getContent(), $response->getStatusCode(), $response->headers->all());
  
          return $response->withException($e);
      }
code_tokens: protected function createResponse ( $ response , Exception $ e ) { $ response = new HttpResponse ( $ response -> getContent ( ) , $ response -> getStatusCode ( ) , $ response -> headers -> all ( ) ) ; return $ response -> withException ( $ e ) ; }
docstring: Map exception into a Nova response.
  
  @param  \Symfony\Component\HttpFoundation\Response  $response
  @param  \Exception  $e
  @return \Nova\Http\Response
docstring_tokens: Map exception into a Nova response .