TriggerExceptionError
in package
Triggers errors for uncaught exceptions.
If registered as exception handler, this catches an uncaught exception and
converts it into an internal PHP error of severity E_USER_ERROR
.
Usage:
set_exception_handler(new TriggerExceptionError());
Tags
Table of Contents
Methods
- __invoke() : void
- Convert an uncaught exception into an PHP error.
Methods
__invoke()
Convert an uncaught exception into an PHP error.
public
__invoke(Throwable $exception) : void
Parameters
- $exception : Throwable
-
The exception