deason 7 달 전
부모
커밋
b38f8a1c07
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examcloud-support/src/main/java/cn/com/qmth/examcloud/web/support/CustomExceptionHandler.java

+ 2 - 2
examcloud-support/src/main/java/cn/com/qmth/examcloud/web/support/CustomExceptionHandler.java

@@ -61,7 +61,7 @@ public class CustomExceptionHandler {
             body = new StatusResponse(SystemProperties.APP_CODE + "-500", "系统异常");
             cause = e;
         } else if (cause instanceof ApiFlowLimitedException) {
-            body = new StatusResponse("503", "limited. RPC");
+            body = new StatusResponse("503", "RPC请求异常");
         } else if (cause instanceof StatusException) {
             StatusException se = (StatusException) cause;
             body = new StatusResponse(SystemProperties.APP_CODE + "-" + se.getCode(), se.getDesc());
@@ -94,7 +94,7 @@ public class CustomExceptionHandler {
         } else if (cause instanceof org.springframework.jdbc.CannotGetJdbcConnectionException
                 || cause instanceof org.springframework.orm.jpa.JpaSystemException
                 || cause instanceof org.springframework.transaction.CannotCreateTransactionException) {
-            body = new StatusResponse("503", "limited. JDBC");
+            body = new StatusResponse("503", "DB请求异常");
         } else {
             body = new StatusResponse(SystemProperties.APP_CODE + "-500", "系统异常");
             cause = e;