ThrowErrorException
in package
Throw internal errors as exceptions.
Usage: set_error_handler(new ThrowErrorException());
Tags
Table of Contents
Methods
- __invoke() : bool
- Convert an internal PHP error into an ErrorException.
Methods
__invoke()
Convert an internal PHP error into an ErrorException.
public
__invoke([int $errno = E_USER_ERROR ][, string $errstr = '' ][, string|null $errfile = null ][, int|null $errline = null ]) : bool
Parameters
- $errno : int = E_USER_ERROR
-
The severity of the error
- $errstr : string = ''
-
The error message
- $errfile : string|null = null
-
The name of the file the error was raised in
- $errline : int|null = null
-
The line number the error was raised in
Tags
Return values
bool —Always returns FALSE when not throwing an exception