Skip to content

Commit a554805

Browse files
committed
feat(board): add error code for unmapped board status
- And also reorder enum constants.
1 parent 5a36149 commit a554805

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/board/api/exception/src/main/java/nettee/board/exception/BoardErrorCode.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ public enum BoardErrorCode implements ErrorCode {
1010
BOARD_NOT_FOUND("게시물을 찾을 수 없습니다.", HttpStatus.NOT_FOUND),
1111
BOARD_GONE("더 이상 존재하지 않는 게시물입니다.", HttpStatus.GONE),
1212
BOARD_FORBIDDEN("권한이 없습니다.", HttpStatus.FORBIDDEN),
13-
DEFAULT("게시물 조작 오류", HttpStatus.INTERNAL_SERVER_ERROR),
14-
BOARD_ALREADY_EXIST("게시물이 이미 존재합니다.", HttpStatus.CONFLICT);
13+
BOARD_ALREADY_EXIST("게시물이 이미 존재합니다.", HttpStatus.CONFLICT),
14+
UNMAPPED_BOARD_STATUS("Unknown board status or its code.", HttpStatus.INTERNAL_SERVER_ERROR),
15+
DEFAULT("게시물 조작 오류", HttpStatus.INTERNAL_SERVER_ERROR);
1516

1617
private final String message;
1718
private final HttpStatus httpStatus;

0 commit comments

Comments
 (0)