diff --git a/src/main/java/life/mosu/mosuserver/global/exception/GlobalExceptionHandler.java b/src/main/java/life/mosu/mosuserver/global/exception/GlobalExceptionHandler.java index ba4125b5..c578e565 100644 --- a/src/main/java/life/mosu/mosuserver/global/exception/GlobalExceptionHandler.java +++ b/src/main/java/life/mosu/mosuserver/global/exception/GlobalExceptionHandler.java @@ -82,9 +82,9 @@ public ResponseEntity handleAuthenticationException(Authenticatio return ResponseEntity.status(HttpStatus.UNAUTHORIZED).body(response); } - @ExceptionHandler(AuthenticationException.class) + @ExceptionHandler(life.mosu.mosuserver.global.exception.AuthenticationException.class) public ResponseEntity handleCustomAuthenticationException( - AuthenticationException ex) { + life.mosu.mosuserver.global.exception.AuthenticationException ex) { notifyIfNeeded(ex); ErrorResponse response = ErrorResponse.builder()