Symfony2 API
Class

Symfony\Bundle\TwigBundle\Controller\ExceptionController

class ExceptionController

ExceptionController.

Methods

__construct(Twig_Environment $twig, $debug)

Response showAction(Request $request, FlattenException $exception, DebugLoggerInterface $logger = null, string $format = 'html')

Converts an Exception to a Response.

Details

at line 30
public __construct(Twig_Environment $twig, $debug)

Parameters

Twig_Environment $twig
$debug

at line 48
public Response showAction(Request $request, FlattenException $exception, DebugLoggerInterface $logger = null, string $format = 'html')

Converts an Exception to a Response.

Parameters

Request $request The request
FlattenException $exception A FlattenException instance
DebugLoggerInterface $logger A DebugLoggerInterface instance
string $format The format to use for rendering (html, xml, ...)

Return Value

Response

Exceptions

InvalidArgumentException When the exception template does not exist