ErrorException::__construct
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Constructs the exception
Description
Constructs the Exception.
Parameters
messageThe Exception message to throw.
codeThe Exception code.
severityThe severity level of the exception.
NoteWhile the severity can be any
intvalue, it is intended that the error constants be used.filenameThe filename where the exception is thrown.
lineThe line number where the exception is thrown.
previousThe previous exception used for the exception chaining.
Changelog
| Version | Description |
|---|---|
| 8.0.0 | filename and line are nullable now. Previously, their defaults were __FILE__ and __LINE__, respectively. |