array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'error.construct.php', 1 => 'Error::__construct', 2 => 'Construct the error object', ), 'up' => array ( 0 => 'class.error.php', 1 => 'Error', ), 'prev' => array ( 0 => 'class.error.php', 1 => 'Error', ), 'next' => array ( 0 => 'error.getmessage.php', 1 => 'Error::getMessage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/error/construct.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Error::__construct

(PHP 7, PHP 8)

Error::__constructConstruct the error object

Опис

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

Constructs the Error.

Параметри

message

The error message.

code

The error code.

previous

The previous throwable used for the exception chaining.

Примітки

Зауваження:

The message is NOT binary safe.