diff --git a/cloud-central-control-client/src/main/java/com/cm/central/control/client/socket/aspect/ClientExceptionAspect.java b/cloud-central-control-client/src/main/java/com/cm/central/control/client/socket/aspect/ClientExceptionAspect.java index ea81982..e77f1c0 100644 --- a/cloud-central-control-client/src/main/java/com/cm/central/control/client/socket/aspect/ClientExceptionAspect.java +++ b/cloud-central-control-client/src/main/java/com/cm/central/control/client/socket/aspect/ClientExceptionAspect.java @@ -8,6 +8,8 @@ import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.springframework.core.annotation.Order; import org.springframework.security.core.AuthenticationException; +import org.springframework.security.oauth2.common.exceptions.OAuth2Exception; +import org.springframework.security.oauth2.provider.ClientRegistrationException; import org.springframework.stereotype.Component; import javax.annotation.Resource; @@ -41,7 +43,9 @@ public class ClientExceptionAspect { result = proceedingJoinPoint.proceed(); } catch (Throwable e) { boolean exceptionFlag = e instanceof SystemException - || e instanceof AuthenticationException; + || e instanceof AuthenticationException + || e instanceof OAuth2Exception + || e instanceof ClientRegistrationException; if (!exceptionFlag) { new Thread(() -> { exceptionServiceImpl.writeThrowable(e);