@ExceptionHandler(BizException.class) public Result handleBizException(BizException bizException) { return Result.fail(bizException.getCode(), bizException.getMsg()); }
@ExceptionHandler(Exception.class) public Result handleException(Exception exception) { return Result.fail(exception.getMessage()); } }