Skip to content

Commit

Permalink
#511 [feat] 자원 미표시 에러코드 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyundoh committed Sep 9, 2024
1 parent da30103 commit 898812c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public enum ErrorMessage {
CURIOUS_NOT_FOUND(40407, "해당 궁금해요는 존재하지 않습니다."),
TOPIC_NOT_FOUND(40408, "글감이 존재하지 않습니다."),
RECOMMEND_NOT_FOUND(40412, "추천 글감을 받아오는데 실패했습니다."),
PATH_PARAMETER_INVALID_ERROR(40413, "해당 URI는 자원을 표시할 수 없습니다."),
INVALID_URL_EXCEPTION(40414, "해당 URI는 자원을 표시할 수 없습니다."),
INVALID_URL_EXCEPTION(40413, "해당 URI는 자원을 표시할 수 없습니다."),
/*
Bad Request
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public Long decodeUrl(final String url) {
try {
return Long.parseLong(new String(Base64.getUrlDecoder().decode(url)));
} catch (IllegalArgumentException e) {
throw new NotFoundException(ErrorMessage.PATH_PARAMETER_INVALID_ERROR);
throw new NotFoundException(ErrorMessage.INVALID_URL_EXCEPTION);
}
}

Expand Down

0 comments on commit 898812c

Please sign in to comment.