From 757d98b8c9c44e816f022aeeeeececc1c7f756eb Mon Sep 17 00:00:00 2001 From: pushedrumex Date: Fri, 5 Jul 2024 17:49:08 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20ExceptionHandler=20=EC=98=88=EC=99=B8?= =?UTF-8?q?=20=ED=81=B4=EB=9E=98=EC=8A=A4=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../verby/indp/domain/common/exception/ControllerAdvice.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/verby/indp/domain/common/exception/ControllerAdvice.java b/src/main/java/com/verby/indp/domain/common/exception/ControllerAdvice.java index 6c5dcf2..519c5f9 100644 --- a/src/main/java/com/verby/indp/domain/common/exception/ControllerAdvice.java +++ b/src/main/java/com/verby/indp/domain/common/exception/ControllerAdvice.java @@ -16,8 +16,8 @@ public ResponseEntity handleBusinessException(BusinessException e return ResponseEntity.status(exception.getStatusCode()).body(new ErrorResponse(exception.getMessage())); } - @ExceptionHandler(RuntimeException.class) - public ResponseEntity handleException(RuntimeException exception) { + @ExceptionHandler(Exception.class) + public ResponseEntity handleException(Exception exception) { String exName = exception.getClass().getSimpleName(); String exMessage = exception.getMessage(); log.error("[Exception] exName=[{}] exMessage=[{}]", exName, exMessage);