diff --git a/BE/exceed/src/main/java/com/gaebaljip/exceed/common/exception/auth/AuthError.java b/BE/exceed/src/main/java/com/gaebaljip/exceed/common/exception/auth/AuthError.java index 23566e787..17dab68b2 100644 --- a/BE/exceed/src/main/java/com/gaebaljip/exceed/common/exception/auth/AuthError.java +++ b/BE/exceed/src/main/java/com/gaebaljip/exceed/common/exception/auth/AuthError.java @@ -14,7 +14,8 @@ @AllArgsConstructor public enum AuthError implements BaseError { PASSWORD_MISMATCH(400, "5003", "비밀번호가 일치하지 않습니다."), - MEMBER_NOT_CHECKED(400, "5004", "해당 회원은 이메일 검증이 완료되지 않았습니다."); + MEMBER_NOT_CHECKED(400, "5004", "해당 회원은 이메일 검증이 완료되지 않았습니다."), + NOT_FOUND_REFRESHTOKEN(400, "5005", "리프레시 토큰이 존재하지 않습니다.") ; private final Integer status; diff --git a/BE/exceed/src/main/java/com/gaebaljip/exceed/common/exception/auth/NotFoundRefreshTokenException.java b/BE/exceed/src/main/java/com/gaebaljip/exceed/common/exception/auth/NotFoundRefreshTokenException.java new file mode 100644 index 000000000..4de1b3944 --- /dev/null +++ b/BE/exceed/src/main/java/com/gaebaljip/exceed/common/exception/auth/NotFoundRefreshTokenException.java @@ -0,0 +1,12 @@ +package com.gaebaljip.exceed.common.exception.auth; + +import com.gaebaljip.exceed.common.exception.EatCeedException; + +public class NotFoundRefreshTokenException extends EatCeedException { + + public static EatCeedException EXECPTION = new NotFoundRefreshTokenException(); + + public NotFoundRefreshTokenException() { + super(AuthError.NOT_FOUND_REFRESHTOKEN); + } +}