-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GETP-192 refactor: auth 컴포넌트에서 ErrorCode에 대한 의존성 제거 (#124)
* GETP-192 refactor: SignUpService에서 ErrorCode에 대한 의존성 제거 * GETP-192 refactor: AuthService에서 ErrorCode에 대한 의존성 제거 * GETP-192 refactor: VerificationService에서 ErrorCode에 대한 의존성 제거
- Loading branch information
Showing
16 changed files
with
115 additions
and
225 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
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
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
14 changes: 14 additions & 0 deletions
14
src/main/java/es/princip/getp/domain/auth/exception/DuplicatedEmailException.java
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,14 @@ | ||
package es.princip.getp.domain.auth.exception; | ||
|
||
import es.princip.getp.infra.exception.BusinessLogicException; | ||
import es.princip.getp.infra.exception.ErrorDescription; | ||
|
||
public class DuplicatedEmailException extends BusinessLogicException { | ||
|
||
private static final String code = "DUPLICATED_EMAIL"; | ||
private static final String message = "중복된 이메일입니다. 다른 이메일을 사용해주세요."; | ||
|
||
public DuplicatedEmailException() { | ||
super(ErrorDescription.of(code, message)); | ||
} | ||
} |
28 changes: 0 additions & 28 deletions
28
src/main/java/es/princip/getp/domain/auth/exception/EmailVerificationErrorCode.java
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
src/main/java/es/princip/getp/domain/auth/exception/IncorrectEmailOrPasswordException.java
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,14 @@ | ||
package es.princip.getp.domain.auth.exception; | ||
|
||
import es.princip.getp.infra.exception.BusinessLogicException; | ||
import es.princip.getp.infra.exception.ErrorDescription; | ||
|
||
public class IncorrectEmailOrPasswordException extends BusinessLogicException { | ||
|
||
private static final String code = "INCORRECT_EMAIL_OR_PASSWORD"; | ||
private static final String message = "이메일 또는 비밀번호가 일치하지 않습니다."; | ||
|
||
public IncorrectEmailOrPasswordException() { | ||
super(ErrorDescription.of(code, message)); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/es/princip/getp/domain/auth/exception/IncorrectVerificationCodeException.java
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,14 @@ | ||
package es.princip.getp.domain.auth.exception; | ||
|
||
import es.princip.getp.infra.exception.BusinessLogicException; | ||
import es.princip.getp.infra.exception.ErrorDescription; | ||
|
||
public class IncorrectVerificationCodeException extends BusinessLogicException { | ||
|
||
private static final String code = "INCORRECT_VERIFICATION_CODE"; | ||
private static final String message = "인증 코드가 일치하지 않습니다."; | ||
|
||
public IncorrectVerificationCodeException() { | ||
super(ErrorDescription.of(code, message)); | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
src/main/java/es/princip/getp/domain/auth/exception/LoginErrorCode.java
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
src/main/java/es/princip/getp/domain/auth/exception/NotFoundVerificationException.java
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,14 @@ | ||
package es.princip.getp.domain.auth.exception; | ||
|
||
import es.princip.getp.infra.exception.ErrorDescription; | ||
import es.princip.getp.infra.exception.NotFoundException; | ||
|
||
public class NotFoundVerificationException extends NotFoundException { | ||
|
||
private static final String code = "NOT_FOUND_VERIFICATION"; | ||
private static final String message = "존재하지 않는 인증입니다. 인증 요청 후 다시 시도해주세요."; | ||
|
||
public NotFoundVerificationException() { | ||
super(ErrorDescription.of(code, message)); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/es/princip/getp/domain/auth/exception/NotVerifiedEmailException.java
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,14 @@ | ||
package es.princip.getp.domain.auth.exception; | ||
|
||
import es.princip.getp.infra.exception.BusinessLogicException; | ||
import es.princip.getp.infra.exception.ErrorDescription; | ||
|
||
public class NotVerifiedEmailException extends BusinessLogicException { | ||
|
||
private static final String code = "NOT_VERIFIED_EMAIL"; | ||
private static final String message = "인증되지 않은 이메일입니다. 이메일 인증을 완료해주세요."; | ||
|
||
public NotVerifiedEmailException() { | ||
super(ErrorDescription.of(code, message)); | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
src/main/java/es/princip/getp/domain/auth/exception/SignUpErrorCode.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.