pclib
3.0.0
Lightweight PHP framework
|
Catch errors and exceptions and show improved error messages. More...
Public Member Functions | |
register () | |
Register ErrorHandler. | |
unregister () | |
Unregister ErrorHandler. | |
_onException ($e) | |
Callback for exception handling. | |
_onError ($code, $message, $file, $line, $context=null) | |
Callback for error handling. | |
_onWarning ($e) | |
Callback for warning handling. | |
displayError ($e) | |
Display error in development mode (with stack trace). | |
displayProductionError ($e) | |
Display error in production mode (uses template). | |
Public Member Functions inherited from BaseObject | |
loadDefaults ($className=null) | |
Load default parameters of class $className into object instance. | |
setProperties (array $defaults) | |
Set public properties of object from the array. More... | |
toArray () | |
Convert object to array. More... | |
Data Fields | |
$options = [] | |
var array [log, display, develop, error_reporting, template] | |
$logger | |
var Logger | |
$debugger | |
var Debugger | |
Data Fields inherited from BaseObject | |
$serviceLocator | |
var function() Return service object when requested with service(). | |
Additional Inherited Members | |
Static Public Member Functions inherited from BaseObject | |
static | defaults () |
Set or retireve default parameters of the object. More... | |
Protected Member Functions inherited from BaseObject | |
service ($service, $default=null) | |
Try acquire $service and load it into property $this->$service. More... | |
Catch errors and exceptions and show improved error messages.
You can configure behavior of $app->errorHandler with pclib.errors config parameter. Features: