Skip to content

Commit

Permalink
KL-133/refactor: change error code name
Browse files Browse the repository at this point in the history
  • Loading branch information
idealflower-k committed Aug 13, 2024
1 parent 42c1f9b commit bba1c46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class LikeCountBelowMinimumException extends CustomException {
public LikeCountBelowMinimumException() {
super(ErrorCode.LIKES_BELOW_MINIMUM);
super(ErrorCode.LIKE_BELOW_MINIMUM);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public class LikeCountOverMaximumException extends CustomException {
public LikeCountOverMaximumException() {
super(ErrorCode.LIKES_OVER_MAXIMUM);
super(ErrorCode.LIKE_OVER_MAXIMUM);
}
}
4 changes: 2 additions & 2 deletions src/main/java/taco/klkl/global/error/exception/ErrorCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public enum ErrorCode {
INVALID_CITY_IDS(HttpStatus.BAD_REQUEST, "C021", "선택한 도시들은 동일한 국가에 속하지 않습니다."),

// Like
LIKES_OVER_MAXIMUM(HttpStatus.BAD_REQUEST, "C030", "상품의 좋아요수가 최대값입니다. 2147483647"),
LIKES_BELOW_MINIMUM(HttpStatus.BAD_REQUEST, "C031", "상품의 좋아요수가 최소값입니다. 0"),
LIKE_OVER_MAXIMUM(HttpStatus.BAD_REQUEST, "C030", "상품의 좋아요수가 최대값입니다. 2147483647"),
LIKE_BELOW_MINIMUM(HttpStatus.BAD_REQUEST, "C031", "상품의 좋아요수가 최소값입니다. 0"),
// Comment
COMMENT_NOT_FOUND(HttpStatus.NOT_FOUND, "C040", "존재하지 않는 댓글입니다."),
COMMENT_PRODUCT_NOT_MATCH(HttpStatus.BAD_REQUEST, "C041", "다른 상품에 있는 댓글입니다."),
Expand Down

0 comments on commit bba1c46

Please sign in to comment.