初始化 error 對像

Error::__construct

(PHP 7, PHP 8)

Error::__construct初始化 error 對像

說明

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

初始化 Error。

參數

message

錯誤資訊。

code

錯誤程式碼。

previous

先前的 throwable,用於異常鏈。

註釋

注意:

message 不是二進制安全的。

Leave a Reply

Your email address will not be published. Required fields are marked *