Skip to content

Commit

Permalink
Merge pull request #20 from OurMenu/KAN-20-feat/menu-folder
Browse files Browse the repository at this point in the history
[Refactor] 예외처리 통일
  • Loading branch information
You-Hyuk authored Dec 30, 2024
2 parents c9c8ca5 + 6bc1c00 commit d4bfc90
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class ForbiddenMenuFolderException extends CustomException {
public ForbiddenMenuFolderException() {
super("소유하고 있는 메뉴판이 아닙니다", ErrorCode.FORBIDDEN_MENU_RESOURCE);
super(ErrorCode.FORBIDDEN_MENU_FOLDER);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class NotFoundMenuFolderException extends CustomException {
public NotFoundMenuFolderException() {
super("찾을 수 없는 메뉴판입니다", ErrorCode.NOT_FOUND_MENU_RESOURCE);
super(ErrorCode.NOT_FOUND_MENU_FOLDER);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class OutOfBoundCustomIndexException extends CustomException {
public OutOfBoundCustomIndexException() {
super("현재 메뉴판이 가지고 있는 최대 인덱스를 벗어납니다", ErrorCode.MENU_INTERNAL_SERVER);
super(ErrorCode.OUT_OF_BOUND_CUSTOM_INDEX);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public enum ErrorCode {
NOT_MATCH_TOKEN(HttpStatus.UNAUTHORIZED, "U401", "유저의 토큰값과 일치하지 않습니다."),

// 메뉴판
FORBIDDEN_MENU_RESOURCE(HttpStatus.FORBIDDEN, "M403", "접근할 수 없는 메뉴 리소스입니다"),
NOT_FOUND_MENU_RESOURCE(HttpStatus.NOT_FOUND, "M404", "찾을 수 없는 메뉴 리소스입니다"),
MENU_INTERNAL_SERVER(HttpStatus.INTERNAL_SERVER_ERROR, "M500", "메뉴 서버 로직 내부에서 에러가 발생하였습니다"),
FORBIDDEN_MENU_FOLDER(HttpStatus.FORBIDDEN, "F403", "소유하고 있는 메뉴판이 아닙니다"),
NOT_FOUND_MENU_FOLDER(HttpStatus.NOT_FOUND, "F404", "찾을 수 없는 메뉴 리소스입니다"),
OUT_OF_BOUND_CUSTOM_INDEX(HttpStatus.INTERNAL_SERVER_ERROR, "F500", "현재 메뉴판이 가지고 있는 최대 인덱스를 벗어납니다"),

// S3
UPLOAD_FAILURE(HttpStatus.INTERNAL_SERVER_ERROR, "A500", "파일 업로드중 문제가 발생하였습니다"),
Expand Down

0 comments on commit d4bfc90

Please sign in to comment.