Error::__construct
(PHP 7, PHP 8)
Error::__construct — 初始化 error 对象
说明
public function Error::__construct(string
$message = "", int $code = 0, ?Throwable $previous = null)初始化 Error。
参数
message
错误信息。
code
错误代码。
previous
先前的 throwable,用于异常链。
注释
注意:
message不是二进制安全的。
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
