Handler Class
Aurora\Error Namespace
Interfaces
Properties
adapters
Adapters
private $adapters = []: array
memory
Reserved memory
private $memory = '': string
Constructor
__construct
Constructor
Signature
public function __construct()
Methods
__construct
Constructor
Signature
public function __construct()
register
Attach exception handler
Return Value
$this
Signature
public function register()
attach
Attach an Adapter
Parameters
-
Aurora\Error\Adapter\AdapterInterface
$adapter
— Adapter instance
Return Value
$this
Signature
public function attach(Aurora\Error\Adapter\AdapterInterface $adapter)
errorHandler
Error handler function
Parameters
-
int
$code
— Error number -
string
$error
— Error description -
string
$file
— File where the error is located in -
int
$line
— Line where the error is located in
Return Value
bool
Signature
public function errorHandler(int $code, string $error, string $file = '', int $line): bool
exceptionHandler
Exception handler function
Parameters
-
Throwable
$e
— The exception to handle
Signature
public function exceptionHandler(Throwable $e)
shutdownHandler
Shutdown handler function
Signature
public function shutdownHandler()
render
Render adapter
Parameters
-
Throwable
$exception
— The exception to show -
mixed
$source
— Source snippet
Signature
public function render(Throwable $exception, mixed $source)