-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
50 changed files
with
643 additions
and
1,961 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
20 changes: 20 additions & 0 deletions
20
main/src/main/java/com/amorgakco/backend/global/exception/DuplicatedRequestException.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,20 @@ | ||
package com.amorgakco.backend.global.exception; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class DuplicatedRequestException extends IllegalStateException{ | ||
|
||
private final ErrorCode errorCode; | ||
|
||
public static DuplicatedRequestException duplicatedParticipant() { | ||
return new DuplicatedRequestException(ErrorCode.PARTICIPANT_DUPLICATED); | ||
} | ||
|
||
public static DuplicatedRequestException duplicatedGroupApplication() { | ||
return new DuplicatedRequestException(ErrorCode.GROUP_APPLICATION_DUPLICATED); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
main/src/main/java/com/amorgakco/backend/global/exception/GroupAuthorityException.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 com.amorgakco.backend.global.exception; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class GroupAuthorityException extends IllegalStateException { | ||
private final ErrorCode errorCode; | ||
|
||
public static GroupAuthorityException noAuthorityForGroup() { | ||
return new GroupAuthorityException(ErrorCode.NO_AUTHORITY_FOR_GROUP); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
main/src/main/java/com/amorgakco/backend/global/exception/GroupCapacityException.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 com.amorgakco.backend.global.exception; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class GroupCapacityException extends IllegalStateException { | ||
private final ErrorCode errorCode; | ||
|
||
public static GroupCapacityException exceedGroupCapacity() { | ||
return new GroupCapacityException(ErrorCode.EXCEED_GROUP_CAPACITY); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
main/src/main/java/com/amorgakco/backend/global/exception/GroupSearchException.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,17 @@ | ||
package com.amorgakco.backend.global.exception; | ||
|
||
|
||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class GroupSearchException extends IllegalArgumentException { | ||
|
||
private final ErrorCode errorCode; | ||
|
||
public static GroupSearchException invalidDiagonalDistance() { | ||
return new GroupSearchException(ErrorCode.INVALID_DIAGONAL_DISTANCE); | ||
} | ||
} |
51 changes: 0 additions & 51 deletions
51
main/src/main/java/com/amorgakco/backend/global/exception/IllegalAccessException.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
22 changes: 22 additions & 0 deletions
22
main/src/main/java/com/amorgakco/backend/global/exception/LocationVerificationException.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,22 @@ | ||
package com.amorgakco.backend.global.exception; | ||
|
||
|
||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class LocationVerificationException extends IllegalStateException{ | ||
|
||
private final ErrorCode errorCode; | ||
|
||
public static LocationVerificationException verificationFailed() { | ||
return new LocationVerificationException(ErrorCode.VERIFICATION_FAILED); | ||
} | ||
|
||
public static LocationVerificationException verificationDuplicated() { | ||
return new LocationVerificationException(ErrorCode.VERIFICATION_DUPLICATED); | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
main/src/main/java/com/amorgakco/backend/global/exception/MemberTemperatureException.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,20 @@ | ||
package com.amorgakco.backend.global.exception; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class MemberTemperatureException extends IllegalStateException{ | ||
|
||
private final ErrorCode errorCode; | ||
|
||
public static MemberTemperatureException exceedMaxTemperature() { | ||
return new MemberTemperatureException(ErrorCode.EXCEED_MAX_TEMPERATURE); | ||
} | ||
|
||
public static MemberTemperatureException underMinTemperature() { | ||
return new MemberTemperatureException(ErrorCode.UNDER_MIN_TEMPERATURE); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
main/src/main/java/com/amorgakco/backend/global/exception/ParticipantException.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,21 @@ | ||
package com.amorgakco.backend.global.exception; | ||
|
||
|
||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class ParticipantException extends IllegalStateException { | ||
|
||
private final ErrorCode errorCode; | ||
|
||
public static ParticipantException exceedParticipationLimit() { | ||
return new ParticipantException(ErrorCode.EXCEED_PARTICIPATION_LIMIT); | ||
} | ||
|
||
public static ParticipantException notSameGroupParticipant() { | ||
return new ParticipantException(ErrorCode.NOT_SAME_GROUP_PARTICIPANT); | ||
} | ||
} |
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.