-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 인증 코드 내역이 존재하지 않는 경우(인증 코드 만료도 포함) - 인증 코드가 일치하지 않는 경우
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package yeonba.be.exception; | ||
|
||
import org.springframework.http.HttpStatus; | ||
|
||
public enum LoginException implements BaseException { | ||
|
||
VERIFICATION_CODE_NOT_FOUND( | ||
HttpStatus.BAD_REQUEST, | ||
"해당 인증 코드 내역이 존재하지 않습니다."), | ||
|
||
VERIFICATION_CODE_NOT_MATCH( | ||
HttpStatus.BAD_REQUEST, | ||
"인증 코드가 일치하지 않습니다."); | ||
|
||
private final HttpStatus httpStatus; | ||
private final String reason; | ||
|
||
LoginException(HttpStatus httpStatus, String reason) { | ||
this.httpStatus = httpStatus; | ||
this.reason = reason; | ||
} | ||
|
||
@Override | ||
public HttpStatus getHttpStatus() { | ||
return httpStatus; | ||
} | ||
|
||
@Override | ||
public String getReason() { | ||
return reason; | ||
} | ||
} |