龚焕茏
2024-05-10 f2123ad78adc82f6a3e69a5603b6c0b110025236
src/main/java/com/mindskip/xzs/configuration/spring/exception/ExceptionHandle.java
@@ -75,4 +75,11 @@
        logger.error(e.getMessage(), e);
        return new RestResponse<>(SystemCode.QuestionError.getCode(), SystemCode.QuestionError.getMessage());
    }
    @ExceptionHandler(RuntimeException.class)
    @ResponseBody
    public RestResponse handlerRuntimeException(RuntimeException e) {
        logger.error(e.getMessage(), e);
        return new RestResponse<>(SystemCode.InnerError.getCode(), e.getMessage());
    }
}