PHP Interface Autarky\Errors\ErrorHandlerManagerInterface

Inheritance: extends Autarky\Errors\ErrorHandlerInterface
Show file Open project: autarky/framework

Public Methods

Method Description
appendHandler ( callable | Autarky\Errors\ErrorHandlerInterface $handler ) : void Append a handler to the list of handlers.
prependHandler ( callable | Autarky\Errors\ErrorHandlerInterface $handler ) : void Prepend a handler to the list of handlers.
register ( ) : void Register the error handler to handle uncaught exceptions and errors.
setDefaultHandler ( Autarky\Errors\ErrorHandlerInterface $handler ) Set the default handler that will be called if no other handlers are available.
setRethrow ( boolean $toggle ) Set whether exceptions should be handled or rethrown.

Method Details

appendHandler() public method

Append a handler to the list of handlers.
public appendHandler ( callable | Autarky\Errors\ErrorHandlerInterface $handler ) : void
$handler callable | Autarky\Errors\ErrorHandlerInterface
return void

prependHandler() public method

Prepend a handler to the list of handlers.
public prependHandler ( callable | Autarky\Errors\ErrorHandlerInterface $handler ) : void
$handler callable | Autarky\Errors\ErrorHandlerInterface
return void

register() public method

Register the error handler to handle uncaught exceptions and errors.
public register ( ) : void
return void

setDefaultHandler() public method

Set the default handler that will be called if no other handlers are available.
public setDefaultHandler ( Autarky\Errors\ErrorHandlerInterface $handler )
$handler Autarky\Errors\ErrorHandlerInterface

setRethrow() public method

Set whether exceptions should be handled or rethrown.
public setRethrow ( boolean $toggle )
$toggle boolean