-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bet 예외 추가 및 예외 처리 통일
- Loading branch information
Showing
19 changed files
with
230 additions
and
205 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
backend/src/main/java/mouda/backend/bet/exception/BetErrorMessage.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,15 @@ | ||
package mouda.backend.bet.exception; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum BetErrorMessage { | ||
|
||
BET_DARAKBANG_MEMBER_NOT_FOUND("참여하지 않은 안내면진다입니다."), | ||
BET_NOT_FOUND("안내면진다가 존재하지 않습니다."), | ||
LOSER_NOT_FOUND("당첨자가 존재하지 않습니다."); | ||
|
||
private final String message; | ||
} |
12 changes: 12 additions & 0 deletions
12
backend/src/main/java/mouda/backend/bet/exception/BetException.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,12 @@ | ||
package mouda.backend.bet.exception; | ||
|
||
import org.springframework.http.HttpStatus; | ||
|
||
import mouda.backend.common.exception.MoudaException; | ||
|
||
public class BetException extends MoudaException { | ||
|
||
public BetException(HttpStatus httpStatus, BetErrorMessage betErrorMessage) { | ||
super(httpStatus, betErrorMessage.getMessage()); | ||
} | ||
} |
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
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
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
backend/src/main/java/mouda/backend/member/exception/MemberErrorMessage.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 mouda.backend.member.exception; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum MemberErrorMessage { | ||
|
||
MEMBER_NAME_NOT_EXISTS("멤버 이름이 존재하지 않습니다."), | ||
; | ||
|
||
private final String message; | ||
} |
12 changes: 12 additions & 0 deletions
12
backend/src/main/java/mouda/backend/member/exception/MemberException.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,12 @@ | ||
package mouda.backend.member.exception; | ||
|
||
import org.springframework.http.HttpStatus; | ||
|
||
import mouda.backend.common.exception.MoudaException; | ||
|
||
public class MemberException extends MoudaException { | ||
|
||
public MemberException(HttpStatus httpStatus, MemberErrorMessage chatErrorMessage) { | ||
super(httpStatus, chatErrorMessage.getMessage()); | ||
} | ||
} |
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
Oops, something went wrong.