Skip to content

Commit

Permalink
Merge pull request #54 from mju-likelion/feature/exception-handle-#52
Browse files Browse the repository at this point in the history
Feature/#52 전역 예외처리 적용
  • Loading branch information
Dh3356 authored Feb 17, 2024
2 parents cd0cc72 + c1f9ab5 commit cecde34
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
@Getter
@AllArgsConstructor
public enum ValidationErrorCode {
VALIDATION("9000", "유효성 검사 실패."),
NOT_NULL("9001", "필수값이 누락되었습니다."),
NOT_BLANK("9002", "필수값이 빈 값이거나 공백으로 되어있습니다."),
REGEX("9003", "형식에 맞지 않습니다."),
EMAIL("9004", "이메일 형식에 맞지 않습니다."),
ENUM_CONSTRAINT("9005", "유효하지 않은 Enum 값입니다."),
GRADE_CONSTRAINT("9006", "학년이 형식에 맞지 않습니다.");
VALIDATION("VALIDATION 9000", "유효성 검사 실패."),
NOT_NULL("VALIDATION 9001", "필수값이 누락되었습니다."),
NOT_BLANK("VALIDATION 9002", "필수값이 빈 값이거나 공백으로 되어있습니다."),
REGEX("VALIDATION 9003", "형식에 맞지 않습니다."),
EMAIL("VALIDATION 9004", "이메일 형식에 맞지 않습니다."),
ENUM_CONSTRAINT("VALIDATION 9005", "유효하지 않은 Enum 값입니다."),
GRADE_CONSTRAINT("VALIDATION 9006", "학년이 형식에 맞지 않습니다.");


private final String code;
private final String message;
Expand Down

0 comments on commit cecde34

Please sign in to comment.