|
@@ -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;
|