略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Error::__construct

2024-05-09

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 不是二进制安全的。

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/error.construct.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3