当前位置:Gxlcms > PHP教程 > thrownewException('SUCCESS',SUCCESS);后面那个SUCCESS是啥意思?

thrownewException('SUCCESS',SUCCESS);后面那个SUCCESS是啥意思?

时间:2021-07-01 10:21:17 帮助过:37人阅读

throw new Exception('SUCCESS', SUCCESS);后面那个SUCCESS是啥意思?

回复内容:

throw new Exception('SUCCESS', SUCCESS);后面那个SUCCESS是啥意思?

http://php.com/manual/en/exception.construct.php

异常代号,是一个 int 类型,应该是之前有定义过 const SUCCESS = 1; 之类的。

人气教程排行