这个Exception()
构造函数用于创建 Exception 对象并设置其一些属性。
new Exception(message, code, previous)
Parameter | Description |
---|---|
message | Optional. A string describing why the exception was thrown |
code | Optional. An integer that can be used used to easily distinguish this exception from others of the same type |
previous | Optional. If this exception was thrown in a catch block of another exception, it is recommended to pass that exception into this parameter |
详细了解我们的异常PHP 异常章节。
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!