\FW\UtilsErrors

Standard Error handling module

Summary

Methods
Properties
Constants
__construct()
handleException()
handleError()
handleFatal()
No public properties found
No constants found
No protected methods found
$config
$logger
N/A
No private methods found
No private properties found
N/A

Properties

$logger

$logger : \FW\Logger\LoggerInterface

Logger module

Type

\FW\Logger\LoggerInterface

Methods

__construct()

__construct(\FW\Utils\FWConfigBaseConfig  $config, \FW\Utils\Logger  $logger) 

Construct all the things!

Parameters

\FW\Utils\FWConfigBaseConfig $config
\FW\Utils\Logger $logger

handleException()

handleException(\Exception  $e) 

Handle exceptions

Parameters

\Exception $e

exception to handle

handleError()

handleError(integer  $errno, string  $errstr, string  $errfile, integer  $errline, mixed  $errcontext) 

Handle PHP error

Parameters

integer $errno
string $errstr
string $errfile
integer $errline
mixed $errcontext

Throws

\ErrorException

handleFatal()

handleFatal() 

Called on PHP shutdown to handle fatal errors