exception 수정
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user