Php/docs/errorexception.construct
From Get docs
ErrorException::__construct
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
ErrorException::__construct — Constructs the exception
Description
public ErrorException::__construct
([ string $message = ""
[, int $code = 0
[, int $severity = E_ERROR
[, string $filename = __FILE__
[, int $lineno = __LINE__
[, Exception $previous = NULL
]]]]]] )
Constructs the Exception.
Parameters
messageThe Exception message to throw.
codeThe Exception code.
severityThe severity level of the exception.
Note:
While the severity can be any int value, it is intended that the error constants be used.
filenameThe filename where the exception is thrown.
linenoThe line number where the exception is thrown.
previousThe previous exception used for the exception chaining.