Php/docs/errorexception.construct
来自菜鸟教程
ErrorException::__construct
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
ErrorException::__construct — 构造一个异常(Exception)
说明
public ErrorException::__construct
([ string $message = ""
[, int $code = 0
[, int $severity = E_ERROR
[, string $filename = __FILE__
[, int $lineno = __LINE__
[, Exception $previous = null
]]]]]] )
构造一个异常(Exception)。
参数
message抛出的异常消息内容。
code异常代码。
severity异常的严重级别。
Note:
severity 可以是任意 integer 值,即错误常量里面的值。
filename抛出异常所在的文件名。
lineno抛出异常所在的行号。
previous异常链中的前一个异常。
更新日志
| 版本 | 说明 |
|---|---|
| 5.3.0 | 增加 previous 参数。
|