Error::__construct

(PHP 7, PHP 8)

Error::__construct初始化 error 對(duì)象

說明

public Error::__construct(string $message = "", int $code = 0, ?Throwable $previous = null)

初始化 Error。

參數(shù)

message

錯(cuò)誤信息。

code

錯(cuò)誤代碼。

previous

先前的 throwable,用于異常鏈。

注釋

注意:

message 不是二進(jìn)制安全的。