ErrorHandler |
Simple error and exception handler. – wraps the error to an ErrorException
instance according to error reporting level – when running the PHP CLI,
reports errors/exceptions to STDERR (even fatal error) and uses exception code
as exit status – allows to deactivate '@' operator – catches fatal error –
accepts callback to be executed at the end of the internal shutdown function –
accepts callback to display an apology when errors are hidden – allows to
ignore errors on some paths, useful with old libraries and deprecated code… |