Error/construct-Phpdoc专题
Error::__construct
初始化 error 对象
说明
public <span
class="methodname">Error::__construct ([ <span
class="methodparam">string $message<span
class="initializer"> = "" [, <span
class="methodparam">int $code<span
class="initializer"> = 0 [, <span
class="methodparam">Throwable $previous<span
class="initializer"> = null ]]] )
初始化 Error。
参数
message
错误信息。
code
错误代码。
previous
先前的 throwable,用于异常链。
注释
Note:
message不是二进制安全的。