Commit 14be8b10 by 罗志长

fix: 去除异常前缀

parent 40eb485b
...@@ -285,7 +285,7 @@ public class GlobalExceptionHandler { ...@@ -285,7 +285,7 @@ public class GlobalExceptionHandler {
logger.error("业务异常{}\n{}\n{}", ExceptionResponseUtil.prefix(b), LocaleUtil.getMessage(b.getMessage()), ExceptionPrintUtil.getStackTraceByPn(b, PackageConst.TOP)); logger.error("业务异常{}\n{}\n{}", ExceptionResponseUtil.prefix(b), LocaleUtil.getMessage(b.getMessage()), ExceptionPrintUtil.getStackTraceByPn(b, PackageConst.TOP));
return ApiResponseUtils.fail(b.getCode(), ExceptionResponseUtil.prefix(b) + LocaleUtil.getMessage(b.getMessage()), ExceptionResponseUtil.body(b)); return ApiResponseUtils.fail(b.getCode(), LocaleUtil.getMessage(b.getMessage()), ExceptionResponseUtil.body(b));
} }
// private ApiResponseEntity<Object> getApiResponse(GlobalException b, String message) { // private ApiResponseEntity<Object> getApiResponse(GlobalException b, String message) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment