Skip to content

Commit

Permalink
feat: Cterror에 NOT_EXIST_REFRESH_TOKEN Type 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
2taezeat committed Feb 1, 2024
1 parent 28a8d64 commit c265c97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ enum class CtErrorType(val errorCode: Int) {
BAD_IMAGE(4013),
WRONG_TOKEN(4100),
EXPIRED_TOKEN(4101),
NOT_EXIST_REFRESH_TOKEN(4102),
SERVER(5000),
SERVICE(5001),
ENCODING_FAILURE(5002),
Expand All @@ -28,6 +29,4 @@ enum class CtErrorType(val errorCode: Int) {
companion object {
val ctErrorEnums = CtErrorType.values().toList()
}
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ fun CtErrorType.toMessageId(): Int {
CtErrorType.ALREADY_EXIST_EMAIL -> R.string.error_message_already_exist_email
CtErrorType.NOT_EXIST_GENRE -> R.string.error_message_not_exist_genre
CtErrorType.EXPIRED_TOKEN -> R.string.error_message_expired_token
CtErrorType.NOT_EXIST_REFRESH_TOKEN -> R.string.error_message_not_exist_refresh_token
CtErrorType.SERVICE -> R.string.error_message_service
CtErrorType.BAD_IMAGE -> R.string.error_message_bad_image
CtErrorType.ENCODING_FAILURE -> R.string.error_encoding_failure
Expand All @@ -29,4 +30,4 @@ fun CtErrorType.toMessageId(): Int {
CtErrorType.ENCODED_MUSIC_UPLOAD_ERROR -> R.string.error_uploading_music
}

}
}
3 changes: 2 additions & 1 deletion android/core/ui/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@
<string name="error_message_already_exist_email">이미 회원가입이 완료된 이메일이에요 !</string>
<string name="error_message_not_exist_genre">장르를 선택해 주세요.</string>
<string name="error_message_expired_token">로그인 토큰이 만료 되었어요.</string>
<string name="error_message_not_exist_refresh_token">리프레쉬 토큰이 만료 되었어요.</string>
<string name="error_message_service">서버에 오류가 생겼어요.</string>
<string name="error_message_bad_image">유해 이미지에요. 다른 이미지로 바꿔주세요.</string>
<string name="error_encoding_failure">인코딩에 실패했어요. 다시 시도해 주세요.</string>
<string name="error_uploading_music">음악 파일 업로드에 실패했어요! 다시 시도 해주세요.</string>

<string name="develop_in_future">차후 개발 예정이에요!</string>

</resources>
</resources>

0 comments on commit c265c97

Please sign in to comment.