异常捕捉 把这三个文件放到/application/common目录下,没有common目录就新建个. 然后再application下的config.php里修改 // 异常处理handle类 留空使用 \think\exception\Handle 'exception_handle' => 'app\common\exception\ExceptionHandler', .最后代码中调用 throw new AppException(错误码, 错误说明);
-
Notifications
You must be signed in to change notification settings - Fork 1
chimojiacai/thinkphp5
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
thinkphp5自定义异常
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published