Skip to content

Commit

Permalink
feat: article.invalid.category 에러코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hun-ca committed Jul 21, 2024
1 parent 680cf75 commit c519e60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ReadArticleUseCase(
articleViewHisAsyncHandler.addArticleViewHis(
useCaseIn.articleId,
useCaseIn.memberId,
CategoryType.fromCode(articleRecord.category) ?: throw RuntimeException("invalid article")
CategoryType.fromCode(articleRecord.category) ?: throw NotFoundException("article.invalid.category")
)

return ReadArticleUseCaseOut(
Expand Down
1 change: 1 addition & 0 deletions api/src/main/resources/messages/article.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
article.notfound.id=\u0061\u0072\u0074\u0069\u0063\u006c\u0065\u002e\u006e\u006f\u0074\u0066\u006f\u0075\u006e\u0064\u002e\u0069\u0064
article.notfound.articleidworkbookid=\u0061\u0072\u0074\u0069\u0063\u006c\u0065\u002e\u006e\u006f\u0074\u0066\u006f\u0075\u006e\u0064\u002e\u0061\u0072\u0074\u0069\u0063\u006c\u0065\u0069\u0064\u0077\u006f\u0072\u006b\u0062\u006f\u006f\u006b\u0069
article.invalid.category=\uc874\uc7ac\ud558\uc9c0\u0020\uc54a\ub294\u0020\uc544\ud2f0\ud074\u0020\uce74\ud14c\uace0\ub9ac\uc785\ub2c8\ub2e4\u000d

0 comments on commit c519e60

Please sign in to comment.