diff --git a/src/main/java/com/kamco/cd/kamcoback/common/exception/CustomApiException.java b/src/main/java/com/kamco/cd/kamcoback/common/exception/CustomApiException.java index cd3a3a1a..1e1d9828 100644 --- a/src/main/java/com/kamco/cd/kamcoback/common/exception/CustomApiException.java +++ b/src/main/java/com/kamco/cd/kamcoback/common/exception/CustomApiException.java @@ -17,11 +17,13 @@ public class CustomApiException extends RuntimeException { } public CustomApiException(String codeName, HttpStatus status) { + super(codeName); this.codeName = codeName; this.status = status; } public CustomApiException(ErrorCode errorCode) { + super(errorCode.getCode()); // 또는 errorCode.getMessage() this.codeName = errorCode.getCode(); this.status = errorCode.getStatus(); }