-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#90 | Implementation of checking whether user has assignment for upda…
…te user support status endpoint (#178)
- Loading branch information
1 parent
9e191dd
commit 09328a3
Showing
7 changed files
with
147 additions
and
6 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
27 changes: 27 additions & 0 deletions
27
src/main/java/com/ays/user/util/exception/AysUserCannotUpdateSupportStatusException.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,27 @@ | ||
package com.ays.user.util.exception; | ||
|
||
import com.ays.common.util.exception.AysAlreadyException; | ||
|
||
import java.io.Serial; | ||
|
||
/** | ||
* Exception thrown when a user has assignment and attempting to update user support status. | ||
*/ | ||
public class AysUserCannotUpdateSupportStatusException extends AysAlreadyException { | ||
|
||
/** | ||
* Unique serial version ID. | ||
*/ | ||
@Serial | ||
private static final long serialVersionUID = -3686691276790127586L; | ||
|
||
/** | ||
* Constructs a new {@code AysUserCannotUpdateSupportStatusException} with the specified id and assignmentId. | ||
* | ||
* @param id the id of the user | ||
*/ | ||
public AysUserCannotUpdateSupportStatusException(String id, String assignmentId) { | ||
super("USER CANNOT UPDATE SUPPORT STATUS BECAUSE USER HAS ASSIGNMENT! id:" + id + " assignmentId:" + assignmentId); | ||
} | ||
|
||
} |
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