Skip to content

Commit

Permalink
feat : error 코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
oU-Ua committed Dec 21, 2023
1 parent b232f47 commit 9b566f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/mvc/promiseme/common/exception/ErrorCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ public enum ErrorCode implements EnumModel{
INVALID_User_Password(401, "U002", "비밀번호가 일치하지 않습니다."),

//중복여부 체크
DUPLICATE_USER(400,"D001","중복된 이메일입니다.");
DUPLICATE_USER(400,"D001","중복된 이메일입니다."),

//조회시 발생 가능 예외
RPOJECT_NOT_FOUND(401,"P001","프로젝트를 찾을 수 없습니다."),
MEMBER_NOT_FOUND(401,"M001","해당하는 멤버를 찾을 수 없습니다."),
CALENDER_NOT_FOUND(401,"C001","해당하는 일정을 찾을 수 없습니다.");

private int status;
private String code;
Expand Down

0 comments on commit 9b566f9

Please sign in to comment.