original_string: protected function convertExceptionToResponse(Exception $e, Request $request)
      {
          $debug = Config::get('app.debug');
  
          //
          $e = FlattenException::create($e);
  
          $handler = new SymfonyExceptionHandler($debug);
  
          return SymfonyResponse::create($handler->getHtml($e), $e->getStatusCode(), $e->getHeaders());
      }
code: protected function convertExceptionToResponse(Exception $e, Request $request)
      {
          $debug = Config::get('app.debug');
  
          //
          $e = FlattenException::create($e);
  
          $handler = new SymfonyExceptionHandler($debug);
  
          return SymfonyResponse::create($handler->getHtml($e), $e->getStatusCode(), $e->getHeaders());
      }
code_tokens: protected function convertExceptionToResponse ( Exception $ e , Request $ request ) { $ debug = Config :: get ( 'app.debug' ) ; // $ e = FlattenException :: create ( $ e ) ; $ handler = new SymfonyExceptionHandler ( $ debug ) ; return SymfonyResponse :: create ( $ handler -> getHtml ( $ e ) , $ e -> getStatusCode ( ) , $ e -> getHeaders ( ) ) ; }
docstring: Convert the given exception into a Response instance.
  
  @param  \Exception  $e
  @return \Symfony\Component\HttpFoundation\Response
docstring_tokens: Convert the given exception into a Response instance .