original_string: public function routeError(\Exception $e)
      {
          if ($e instanceof NotFoundHttpException) {
              $responseContent = $this->twig()->render('Default\404.twig');
              $response = new Response($responseContent, 404);
          } else {
              $responseContent = $this->twig()->render('Default\500.twig', array('error' => $e->getMessage()));
              $response = new Response($responseContent, 500);
          }
  
          return $response;
      }
code: public function routeError(\Exception $e)
      {
          if ($e instanceof NotFoundHttpException) {
              $responseContent = $this->twig()->render('Default\404.twig');
              $response = new Response($responseContent, 404);
          } else {
              $responseContent = $this->twig()->render('Default\500.twig', array('error' => $e->getMessage()));
              $response = new Response($responseContent, 500);
          }
  
          return $response;
      }
code_tokens: public function routeError ( \ Exception $ e ) { if ( $ e instanceof NotFoundHttpException ) { $ responseContent = $ this -> twig ( ) -> render ( 'Default\404.twig' ) ; $ response = new Response ( $ responseContent , 404 ) ; } else { $ responseContent = $ this -> twig ( ) -> render ( 'Default\500.twig' , array ( 'error' => $ e -> getMessage ( ) ) ) ; $ response = new Response ( $ responseContent , 500 ) ; } return $ response ; }
docstring: 404 and 500 error page for non debug mode
  
  @param \Exception $e
  
  @return Response
docstring_tokens: 404 and 500 error page for non debug mode