From 9e694db6a9a89594209b05ab863a8d17ffe591de Mon Sep 17 00:00:00 2001 From: huouvcti Date: Wed, 4 Jun 2025 09:33:23 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A0=84=EC=97=AD=20=EC=98=88=EC=99=B8?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=EA=B8=B0=20=EC=98=A4=EB=A5=98=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CustomResponseException 에서 에러 메시지가 null 로 뜨는 오류 해결 - ex.getMessage() -> ex.getErrorMessage() 로 변경 --- .../com/example/feeda/exception/GlobalExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/example/feeda/exception/GlobalExceptionHandler.java b/src/main/java/com/example/feeda/exception/GlobalExceptionHandler.java index e787dab..35314fd 100644 --- a/src/main/java/com/example/feeda/exception/GlobalExceptionHandler.java +++ b/src/main/java/com/example/feeda/exception/GlobalExceptionHandler.java @@ -45,7 +45,7 @@ public ResponseEntity> handleCustomResponseException(CustomR body.put("timestamp", LocalDateTime.now()); body.put("status", ex.getHttpStatus().value()); body.put("error", ex.getHttpStatus().getReasonPhrase()); - body.put("message", ex.getMessage()); + body.put("message", ex.getErrorMessage()); body.put("path", request.getRequestURI()); return new ResponseEntity<>(body, ex.getHttpStatus());