-
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.
feat: add Exception and ExceptionHandler [#322]
- Loading branch information
Showing
11 changed files
with
184 additions
and
9 deletions.
There are no files selected for viewing
7 changes: 0 additions & 7 deletions
7
spring/src/main/java/com/bancow/bancowback/domain/common/exception/BizException.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
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
16 changes: 16 additions & 0 deletions
16
...src/main/java/com/bancow/bancowback/domain/common/exception/ManagerNotFoundException.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,16 @@ | ||
package com.bancow.bancowback.domain.common.exception; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class ManagerNotFoundException extends RuntimeException { | ||
private ErrorCode managerErrorCode; | ||
private String detailMessage; | ||
|
||
public ManagerNotFoundException(ErrorCode managerErrorCode, String detailMessage) { | ||
super(detailMessage); | ||
this.managerErrorCode = managerErrorCode; | ||
this.detailMessage = detailMessage; | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
...src/main/java/com/bancow/bancowback/domain/common/exception/ManagerNotValidException.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,16 @@ | ||
package com.bancow.bancowback.domain.common.exception; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class ManagerNotValidException extends RuntimeException { | ||
private ErrorCode managerErrorCode; | ||
private String detailMessage; | ||
|
||
public ManagerNotValidException(ErrorCode managerErrorCode, String detailMessage) { | ||
super(detailMessage); | ||
this.managerErrorCode = managerErrorCode; | ||
this.detailMessage = detailMessage; | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
.../java/com/bancow/bancowback/domain/common/exception/ManagerNotValidPasswordException.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,16 @@ | ||
package com.bancow.bancowback.domain.common.exception; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class ManagerNotValidPasswordException extends RuntimeException { | ||
private ErrorCode managerErrorCode; | ||
private String detailMessage; | ||
|
||
public ManagerNotValidPasswordException(ErrorCode managerErrorCode, String detailMessage) { | ||
super(detailMessage); | ||
this.managerErrorCode = managerErrorCode; | ||
this.detailMessage = detailMessage; | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
...n/java/com/bancow/bancowback/domain/common/exception/RegisterDuplicateEmailException.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,16 @@ | ||
package com.bancow.bancowback.domain.common.exception; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class RegisterDuplicateEmailException extends RuntimeException { | ||
private ErrorCode registerErrorCode; | ||
private String detailMessage; | ||
|
||
public RegisterDuplicateEmailException(ErrorCode registerErrorCode, String detailMessage) { | ||
super(detailMessage); | ||
this.registerErrorCode = registerErrorCode; | ||
this.detailMessage = detailMessage; | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
...java/com/bancow/bancowback/domain/common/exception/RegisterNotEqualPasswordException.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,16 @@ | ||
package com.bancow.bancowback.domain.common.exception; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class RegisterNotEqualPasswordException extends RuntimeException { | ||
private ErrorCode registerErrorCode; | ||
private String detailMessage; | ||
|
||
public RegisterNotEqualPasswordException(ErrorCode registerErrorCode, String detailMessage) { | ||
super(detailMessage); | ||
this.registerErrorCode = registerErrorCode; | ||
this.detailMessage = detailMessage; | ||
} | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
.../src/main/java/com/bancow/bancowback/domain/common/exception/TokenAuthorityException.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,8 @@ | ||
package com.bancow.bancowback.domain.common.exception; | ||
|
||
public class TokenAuthorityException extends TokenNotFoundException { | ||
|
||
public TokenAuthorityException(ErrorCode tokenErrorCode, String detailMessage) { | ||
super(tokenErrorCode, detailMessage); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...main/java/com/bancow/bancowback/domain/common/exception/TokenAuthoritySuperException.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,8 @@ | ||
package com.bancow.bancowback.domain.common.exception; | ||
|
||
public class TokenAuthoritySuperException extends TokenNotFoundException { | ||
|
||
public TokenAuthoritySuperException(ErrorCode tokenErrorCode, String detailMessage) { | ||
super(tokenErrorCode, detailMessage); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...g/src/main/java/com/bancow/bancowback/domain/common/exception/TokenNotFoundException.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,16 @@ | ||
package com.bancow.bancowback.domain.common.exception; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class TokenNotFoundException extends RuntimeException { | ||
private ErrorCode tokenErrorCode; | ||
private String detailMessage; | ||
|
||
public TokenNotFoundException(ErrorCode tokenErrorCode, String detailMessage) { | ||
super(detailMessage); | ||
this.tokenErrorCode = tokenErrorCode; | ||
this.detailMessage = detailMessage; | ||
} | ||
|
||
} |