(PHP 7, PHP 8)
Error::__construct — Construct the error object
$message = "", int $code = 0, ?Throwable $previous = null)Constructs the Error.
messageThe error message.
codeThe error code.
previousThe previous throwable used for the exception chaining.
Note:
The
messageis NOT binary safe.