Skip to content

chimojiacai/thinkphp5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

thinkphp5

异常捕捉 把这三个文件放到/application/common目录下,没有common目录就新建个. 然后再application下的config.php里修改 // 异常处理handle类 留空使用 \think\exception\Handle 'exception_handle' => 'app\common\exception\ExceptionHandler', .最后代码中调用 throw new AppException(错误码, 错误说明);

About

thinkphp5自定义异常

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages