From 49db87de829af87cce5d39dc1335937b2d7e418e Mon Sep 17 00:00:00 2001 From: hyunkyu Date: Fri, 6 Oct 2023 16:45:04 +0900 Subject: [PATCH] =?UTF-8?q?[Test]=20exception=20=EC=A3=BC=EC=84=9D?= =?UTF-8?q?=ED=9B=84=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=ED=95=B4=EB=B3=B4?= =?UTF-8?q?=EA=B8=B0#232?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../global/exception/GlobalExceptionHandler.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/gg/server/global/exception/GlobalExceptionHandler.java b/src/main/java/com/gg/server/global/exception/GlobalExceptionHandler.java index a0667c357..a5758b3d3 100644 --- a/src/main/java/com/gg/server/global/exception/GlobalExceptionHandler.java +++ b/src/main/java/com/gg/server/global/exception/GlobalExceptionHandler.java @@ -100,11 +100,11 @@ protected ResponseEntity httpRequestMethodNotSupportedExceptionHa ErrorResponse response = new ErrorResponse(ErrorCode.METHOD_NOT_ALLOWED); return new ResponseEntity<>(response, HttpStatus.METHOD_NOT_ALLOWED); } - @ExceptionHandler(Exception.class) - public ResponseEntity handleException(Exception ex) { - log.error("!!!!!! SERVER ERROR !!!!!!", ex.getMessage()); - ErrorResponse response = new ErrorResponse(ErrorCode.INTERNAL_SERVER_ERR); - return new ResponseEntity<>(response, HttpStatus.valueOf(response.getStatus())); - } +// @ExceptionHandler(Exception.class) +// public ResponseEntity handleException(Exception ex) { +// log.error("!!!!!! SERVER ERROR !!!!!!", ex.getMessage()); +// ErrorResponse response = new ErrorResponse(ErrorCode.INTERNAL_SERVER_ERR); +// return new ResponseEntity<>(response, HttpStatus.valueOf(response.getStatus())); +// } }