ExceptionHandler converts an exception to a Response object.
It is mostly useful in debug mode to replace the default PHP/XDebug output with something prettier and more useful.
As this class is mainly used during Kernel boot, where nothing is yet available, the Response content is always HTML.
at line line 37
__construct($debug = true, $charset = 'UTF-8')
at line line 50
register(Boolean $debug = true)
Registers the exception handler.
at line line 71
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.
at line line 88
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.
at line line 109
Creates the error Response associated with the given Exception.
at line line 125
Gets the HTML content associated with the given exception.
at line line 196
Gets the stylesheet associated with the given exception.