-
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.
Merge pull request #76 from study-hub-inu/fix/SH-288-apply
Fix/sh 288 apply
- Loading branch information
Showing
7 changed files
with
90 additions
and
28 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
25 changes: 25 additions & 0 deletions
25
src/main/java/kr/co/studyhubinu/studyhubserver/exception/apply/ApplyNotFoundException.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,25 @@ | ||
package kr.co.studyhubinu.studyhubserver.exception.apply; | ||
|
||
import kr.co.studyhubinu.studyhubserver.exception.StatusType; | ||
import kr.co.studyhubinu.studyhubserver.exception.common.CustomException; | ||
|
||
public class ApplyNotFoundException extends CustomException { | ||
|
||
private final StatusType status; | ||
private static final String message = "조회되는 요청이 없습니다."; | ||
|
||
public ApplyNotFoundException() { | ||
super(message); | ||
this.status = StatusType.BAD_REQUEST; | ||
} | ||
|
||
@Override | ||
public StatusType getStatus() { | ||
return status; | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return message; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/kr/co/studyhubinu/studyhubserver/exception/apply/SameUserRequestException.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,25 @@ | ||
package kr.co.studyhubinu.studyhubserver.exception.apply; | ||
|
||
import kr.co.studyhubinu.studyhubserver.exception.StatusType; | ||
import kr.co.studyhubinu.studyhubserver.exception.common.CustomException; | ||
|
||
public class SameUserRequestException extends CustomException { | ||
|
||
private final StatusType status; | ||
private static final String message = "동일한 유저가 요청한 기록이 있습니다."; | ||
|
||
public SameUserRequestException() { | ||
super(message); | ||
this.status = StatusType.BAD_REQUEST; | ||
} | ||
|
||
@Override | ||
public StatusType getStatus() { | ||
return status; | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return message; | ||
} | ||
} |
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