Skip to content

Commit

Permalink
[Chore] Error 메세지 AuthError enum 내부 프로퍼티로 선언 #10
Browse files Browse the repository at this point in the history
  • Loading branch information
meltsplit committed Apr 27, 2023
1 parent b665a3d commit 1a6df01
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ enum AuthError: Error {
case invalidEmail
case invlidPassword
case invalidUser

var message: String {
switch self {

case .invalidEmail:
return "이메일형식을 잘못 입력하셨습니다."
case .invlidPassword:
return "비밀번호를 8자 이상 입력해주세요."
case .invalidUser:
return "존재하지 않는 회원입니다."
}
}
}

protocol SignInViewModelInput {
Expand Down

0 comments on commit 1a6df01

Please sign in to comment.