Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
feat :: 지원하기 에러처리
Browse files Browse the repository at this point in the history
  • Loading branch information
HongSJae committed Nov 4, 2023
1 parent 80b4b39 commit db8909a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public enum ApplicationsDomainError: Error {
case alreadyApply

case isSpace
case askDeveloper
}

extension ApplicationsDomainError: LocalizedError {
Expand Down Expand Up @@ -43,6 +44,9 @@ extension ApplicationsDomainError: LocalizedError {

case .isSpace:
return "공백이 있습니다."

case .askDeveloper:
return "개발자에게 문의해주세요."
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ extension ApplicationsAPI: JobisAPI {
401: .noThirdGrade,
403: .forbidden,
404: .notFoundRecruitment,
409: .alreadyApply
409: .alreadyApply,
500: .askDeveloper
]

case .cancelApply:
Expand Down

0 comments on commit db8909a

Please sign in to comment.