namespace app\lib\exception;
use think\exception\Handle;
use think\Exception;
use think\Request;
use think\Log;
class ExceptionHandler extends Handle{
和以下
namespace app\lib\exception;
use think\Exception;
class BaseException extends Exception{
public $code = 400;
public $msg = 'error params';
public $erorCode = 10000;
}