|
@@ -28,6 +28,12 @@ public class GlobalSystemExceptionHandler {
|
|
|
log.error("业务异常:", e);
|
|
log.error("业务异常:", e);
|
|
|
return HttpResult.error(e.getCode(), e.getMessage());
|
|
return HttpResult.error(e.getCode(), e.getMessage());
|
|
|
}
|
|
}
|
|
|
|
|
+ @ExceptionHandler(value = SuccessBusinessException.class)
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public HttpResult handlerRuntimeException(SuccessBusinessException e) {
|
|
|
|
|
+ log.error("状态码为正常的业务:", e);
|
|
|
|
|
+ return HttpResult.error(HttpStatus.SUCCESS_CODE, e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
@ExceptionHandler(value = RuntimeException.class)
|
|
@ExceptionHandler(value = RuntimeException.class)
|
|
|
@ResponseBody
|
|
@ResponseBody
|