✨ Introducing new features. closed #3013 【重构】重构前端index.vue 的刷新逻辑抽取成对应的方法
This commit is contained in:
1 parent
c122af1b0c
commit
e5469fcd98
1 file changed
+6
-6
+6
-6
@@ -76,12 +76,6 @@ public class PigxWebResponseExceptionTranslator implements WebResponseExceptionT
|
||||
return handleOAuth2Exception(new MethodNotAllowedException(ase.getMessage(), ase));
|
||||
}
|
||||
|
||||
ase = (OAuth2Exception) throwableAnalyzer.getFirstThrowableOfType(OAuth2Exception.class, causeChain);
|
||||
|
||||
if (ase != null) {
|
||||
return handleOAuth2Exception((OAuth2Exception) ase);
|
||||
}
|
||||
|
||||
// 处理不合法的令牌错误 401 返回
|
||||
ase = (InvalidTokenException) throwableAnalyzer.getFirstThrowableOfType(InvalidTokenException.class,
|
||||
causeChain);
|
||||
@@ -89,6 +83,12 @@ public class PigxWebResponseExceptionTranslator implements WebResponseExceptionT
|
||||
return handleOAuth2Exception(new UnauthorizedException(ase.getMessage(), ase));
|
||||
}
|
||||
|
||||
ase = (OAuth2Exception) throwableAnalyzer.getFirstThrowableOfType(OAuth2Exception.class, causeChain);
|
||||
|
||||
if (ase != null) {
|
||||
return handleOAuth2Exception((OAuth2Exception) ase);
|
||||
}
|
||||
|
||||
return handleOAuth2Exception(new ServerErrorException(HttpStatus.INTERNAL_SERVER_ERROR.getReasonPhrase(), e));
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user