niletphp / error-handling
The NiletPHP error handling component.
v1.0.0
2017-03-02 09:22 UTC
Requires
- php: >=7.0
This package is not auto-updated.
Last update: 2025-05-10 23:38:20 UTC
README
##Custom error handling
Registers custom error handler, which throws \Error when PHP emits E_WARNING or E_ERROR.
Requirements
PHP >= 7.0
Install
Composer
{ "require": { "niletphp/error-handling": ">=v1.0" } }
Examples
use Nilet\Components\ErrorHandling\ErrorHandler; $eh = new ErrorHandler(); // Registering the custom error handler $eh->handleErrors(); // Restore the previous event handler $eh->restoreErrorHandler();