PHP Class Autarky\Errors\DefaultErrorHandler

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

Protected Properties

Property Type Description
$debug boolean Whether or not debug is enabled.

Public Methods

Method Description
__construct ( boolean $debug )
handle ( Exception $exception )

Protected Methods

Method Description
handleWithSymfony ( Exception $exception )
handleWithWhoops ( Exception $exception )

Method Details

__construct() public method

public __construct ( boolean $debug )
$debug boolean

handle() public method

public handle ( Exception $exception )
$exception Exception

handleWithSymfony() protected method

protected handleWithSymfony ( Exception $exception )
$exception Exception

handleWithWhoops() protected method

protected handleWithWhoops ( Exception $exception )
$exception Exception

Property Details

$debug protected property

Whether or not debug is enabled.
protected bool $debug
return boolean