1. 新建一个异常处理类
    thinkphp5.1 自定义异常处理
  2. 重写think\exception\Handle的render方法
    thinkphp5.1 自定义异常处理
  3. 修改配置文件
    thinkphp5.1 自定义异常处理
  4. 新建代码错误异常类
    thinkphp5.1 自定义异常处理
  5. 修改代码错误异常类的http状态码
    thinkphp5.1 自定义异常处理
  6. 如果开启调试模式,应该报出tp框架自带的异常
    thinkphp5.1 自定义异常处理

相关文章: