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 4e66159..ea81982 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 @@ -1,19 +1,16 @@ package com.cm.central.control.client.socket.aspect; -import com.cm.central.control.client.socket.service.socket.BaseSocketService; import com.cm.central.control.client.socket.service.socket.exception.ExceptionServiceImpl; import com.cm.common.exception.base.SystemException; -import com.cm.socket.service.ISocketService; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.springframework.core.annotation.Order; -import org.springframework.security.authentication.InsufficientAuthenticationException; +import org.springframework.security.core.AuthenticationException; import org.springframework.stereotype.Component; import javax.annotation.Resource; -import java.sql.SQLSyntaxErrorException; /** * @ClassName: ApiLogAspect @@ -44,8 +41,7 @@ public class ClientExceptionAspect { result = proceedingJoinPoint.proceed(); } catch (Throwable e) { boolean exceptionFlag = e instanceof SystemException - || e instanceof SQLSyntaxErrorException - || e instanceof InsufficientAuthenticationException; + || e instanceof AuthenticationException; if (!exceptionFlag) { new Thread(() -> { exceptionServiceImpl.writeThrowable(e);