class ExceptionHandler extends ExceptionHandler
ExceptionHandler converts an exception to a Response object.
__construct($debug = true, $charset = 'UTF-8') | from ExceptionHandler | |
static ExceptionHandler | register(Boolean $debug = true) Registers the exception handler. | from ExceptionHandler |
handle(Exception $exception) Sends a response for the given Exception. | from ExceptionHandler | |
sendPhpResponse(Exception|FlattenException $exception) Sends the error associated with the given Exception as a plain PHP response. | from ExceptionHandler | |
Response | createResponse(Exception|FlattenException $exception) Creates the error Response associated with the given Exception. | from ExceptionHandler |
string | getContent(FlattenException $exception) Gets the HTML content associated with the given exception. | from ExceptionHandler |
string | getStylesheet(FlattenException $exception) Gets the stylesheet associated with the given exception. | from ExceptionHandler |
Registers the exception handler.
Sends a response for the given Exception.
If you have the Symfony HttpFoundation component installed, this method will use it to create and send the response. If not, it will fallback to plain PHP functions.
Sends the error associated with the given Exception as a plain PHP response.
This method uses plain PHP functions like header() and echo to output the response.
Creates the error Response associated with the given Exception.
Gets the HTML content associated with the given exception.
Gets the stylesheet associated with the given exception.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/HttpKernel/Debug/ExceptionHandler.html