Class ErrorHandlerManager
Manager that can handle exceptions as well as keep track of multiple other exception handlers.
- Autarky\Errors\ErrorHandlerManager implements Autarky\Errors\ErrorHandlerManagerInterface
public
|
|
public
|
|
public
|
#
appendHandler( callable|
Append a handler to the list of handlers. |
public
|
#
prependHandler( callable|
Prepend a handler to the list of handlers. |
protected
|
|
public
|
#
setDefaultHandler(
Set the default handler that will be called if no other handlers are available. |
public
|
|
public
Symfony\Component\HttpFoundation\Response
|
|
protected
Symfony\Component\HttpFoundation\Response
|
#
makeResponse( mixed $response, Exception $exception )
Transform an exception handler's response into a Response object. |
protected
boolean
|
#
matchesTypehint( callable|
Check if a handler's argument typehint matches an exception. |
protected
mixed
|
|
public
Symfony\Component\HttpFoundation\Response
|
#
handleUncaught( Exception $exception )
Handle an uncaught exception. Does the same as handle(), but also sends the response, as we can assume that the exception happened outside of HttpKernelInterface::handle. |
public
|
#
handleError( integer $level, string $message, string $file = '', integer $line = 0, array $context = array() )
Handle a PHP error. |
public
|
|
public
|
|
protected
Symfony\Component\Debug\Exception\FatalErrorException|null
|
#
makeFatalErrorException( )
Create a FatalErrorException out of the information stored on the last PHP error. |
protected
Autarky\Errors\HandlerResolver
|
$resolver
|
|
protected
SplDoublyLinkedList
|
$handlers
|
|
protected
|
$defaultHandler
|
|
protected
boolean
|
$rethrow
Re-throw exceptions rather than handling them. |
#
false
|