Throwable::getCode
(PHP 7, PHP 8)
Throwable::getCode — 获取异常代码
参数
此函数没有参数。
返回值
返回 Exception 的 int 异常代码, 但如果是 Exception 的子类,可能会使其他类型(例如,PDOException 返回的类型是 string )。
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
· 52CE 我爱测
返回 Exception 的 int 异常代码, 但如果是 Exception 的子类,可能会使其他类型(例如,PDOException 返回的类型是 string )。
(PHP 7, PHP 8)
Throwable::getCode — 获取异常代码
此函数没有参数。
返回 Exception 的 int 异常代码, 但如果是 Exception 的子类,可能会使其他类型(例如,PDOException 返回的类型是 string )。
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
正文与所需资源由本站本地存储。查看来源及更新记录 ↗
请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。