phpday 2027 - Call for Papers

Error::__construct

(PHP 7, PHP 8)

Error::__construct — エラーオブジェクトを生成する

説明

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

エラーを生成します。

パラメータ

message

エラーメッセージ。

code

エラーコード。

previous

例外チェーンに使われる、直前のスロー可能オブジェクト。

注意

注意:

message はバイナリセーフでは ありません。

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top