exception 수정

This commit is contained in:
2026-01-21 11:14:31 +09:00
parent b8a0999a7e
commit 6aa4801059

View File

@@ -17,11 +17,13 @@ public class CustomApiException extends RuntimeException {
} }
public CustomApiException(String codeName, HttpStatus status) { public CustomApiException(String codeName, HttpStatus status) {
super(codeName);
this.codeName = codeName; this.codeName = codeName;
this.status = status; this.status = status;
} }
public CustomApiException(ErrorCode errorCode) { public CustomApiException(ErrorCode errorCode) {
super(errorCode.getCode()); // 또는 errorCode.getMessage()
this.codeName = errorCode.getCode(); this.codeName = errorCode.getCode();
this.status = errorCode.getStatus(); this.status = errorCode.getStatus();
} }