From 65bdeb1b74d9eb839418db548ba176f22e75b7cc Mon Sep 17 00:00:00 2001 From: 101 Date: Thu, 15 Feb 2024 15:07:55 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=ED=8C=A9=ED=86=A0=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../daemawiki/global/error/exception/GlobalExceptionHandler.java | 1 + 1 file changed, 1 insertion(+) 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());