ErrorException::__construct
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
ErrorException::__construct — 构造一个异常(Exception)
说明
public ErrorException::__construct(
string
int
int
?string
?int
?Throwable
)
string
$message = "",int
$code = 0,int
$severity = E_ERROR,?string
$filename = null,?int
$line = null,?Throwable
$previous = null)
构造一个异常(Exception)。
参数
filename抛出异常所在的文件名。
line抛出异常所在的行号。
previous异常链中的前一个异常。