Skip to content

Commit

Permalink
refactor : CustomException에 Error Message 지정 생성자 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-ho committed Feb 12, 2024
1 parent 94b67dc commit ce7e858
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ public CustomException(ErrorCode errorCode) {
super(errorCode.getMessage());
this.errorCode = errorCode;
}

public CustomException(ErrorCode errorCode, String errorMessage) {
super(errorMessage);
this.errorCode = errorCode;
}
}

0 comments on commit ce7e858

Please sign in to comment.