diff --git a/src/main/java/com/example/daemawiki/global/error/exception/GlobalExceptionHandler.java b/src/main/java/com/example/daemawiki/global/error/exception/GlobalExceptionHandler.java index adc890c1..816d0cb3 100644 --- a/src/main/java/com/example/daemawiki/global/error/exception/GlobalExceptionHandler.java +++ b/src/main/java/com/example/daemawiki/global/error/exception/GlobalExceptionHandler.java @@ -12,6 +12,7 @@ @RestControllerAdvice public class GlobalExceptionHandler { + @ExceptionHandler(CustomException.class) public Mono> handleGlobalException(CustomException e) { ErrorResponse errorResponse = ErrorResponse.of(e.getErrorCode().getHttpStatus(), e.getErrorCode().getMessage());