Symfony\Bundle\TwigBundle\Controller\ExceptionController::showAction
Converts an Exception to a Response.
Signature
public function showAction(Request
$request,
[FlattenException
$exception = null,
[DebugLoggerInterface
$logger = null,
[string
$format = 'html']]] )
Parameters
$request
— Symfony\Component\HttpFoundation\Request- The request
$exception
— Symfony\Component\HttpKernel\Exception\FlattenException- A FlattenException instance
$logger
— Symfony\Component\HttpKernel\Log\DebugLoggerInterface- A DebugLoggerInterface instance
$format
— string- The format to use for rendering (html, xml, ...)
Returns
- Response
Errors/Exceptions
-
InvalidArgumentException
- When the exception template does not exist