From 7a9d67f4c73670c7b3516fdc44f008b6e60c9a84 Mon Sep 17 00:00:00 2001 From: Photogrammer <81505228+JuneParkCode@users.noreply.github.com> Date: Fri, 23 Aug 2024 18:36:10 +0900 Subject: [PATCH] =?UTF-8?q?[REVERT]=20"[FEAT]=20Exception=20Handler=20?= =?UTF-8?q?=EC=97=90=EC=84=9C=20Exception.class=20=EC=97=90=20=EB=8C=80?= =?UTF-8?q?=ED=95=9C=20=EC=B2=98=EB=A6=AC"=20(#108)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Revert 사유 - Exception handling 과정에서, 해당 시점에 catch 되지 말아야할 error (`@Secured` 에러와 같은 것들) 까지 catch 되어 처리되고 있음. Reverts Kernel360/E2E2-TALKKA#105 --- .../common/exception/handler/RestControllerAdvice.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/src/main/java/com/talkka/server/common/exception/handler/RestControllerAdvice.java b/server/src/main/java/com/talkka/server/common/exception/handler/RestControllerAdvice.java index a5db44f1..0b447e04 100644 --- a/server/src/main/java/com/talkka/server/common/exception/handler/RestControllerAdvice.java +++ b/server/src/main/java/com/talkka/server/common/exception/handler/RestControllerAdvice.java @@ -31,12 +31,6 @@ public ResponseEntity handleInvalidEnumCodeException(InvalidEnumCodeExce return new ResponseEntity<>(INTERNAL_SERVER_ERROR_MESSAGE, HttpStatus.INTERNAL_SERVER_ERROR); } - @ExceptionHandler(Exception.class) - public ResponseEntity handleException(Exception exception) { - log.error("Exception: {}", exception.getMessage()); - return new ResponseEntity<>(INTERNAL_SERVER_ERROR_MESSAGE, HttpStatus.INTERNAL_SERVER_ERROR); - } - @Deprecated @ExceptionHandler(HttpBaseException.class) public ResponseEntity> handleHttpException(HttpBaseException exception) {