-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AYS-244 | Role Delete Endpoint Has Been Created (#337)
- Loading branch information
1 parent
ec4ff6d
commit 84e90fc
Showing
11 changed files
with
415 additions
and
1 deletion.
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
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/org/ays/auth/util/exception/AysRoleAlreadyDeletedException.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 org.ays.auth.util.exception; | ||
|
||
import org.ays.common.util.exception.AysAlreadyException; | ||
|
||
import java.io.Serial; | ||
|
||
/** | ||
* Exception thrown when a role is deleted and attempting to perform an action that requires a deleted role. | ||
*/ | ||
public final class AysRoleAlreadyDeletedException extends AysAlreadyException { | ||
|
||
/** | ||
* Unique serial version ID. | ||
*/ | ||
@Serial | ||
private static final long serialVersionUID = -7631303999314005771L; | ||
|
||
/** | ||
* Constructs a new {@link AysRoleAlreadyDeletedException} with the specified detail message. | ||
* | ||
* @param id the id of the deleted user | ||
*/ | ||
public AysRoleAlreadyDeletedException(String id) { | ||
super("role is already deleted! id:" + id); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/org/ays/auth/util/exception/AysRoleAssignedToUserException.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 org.ays.auth.util.exception; | ||
|
||
import org.ays.common.util.exception.AysAlreadyException; | ||
|
||
import java.io.Serial; | ||
|
||
/** | ||
* Exception thrown when a role is deleted and attempting to perform an action that requires a deleted role. | ||
*/ | ||
public class AysRoleAssignedToUserException extends AysAlreadyException { | ||
|
||
/** | ||
* Unique serial version ID. | ||
*/ | ||
@Serial | ||
private static final long serialVersionUID = 7298457193066796371L; | ||
|
||
/** | ||
* Constructs a new {@link AysRoleAssignedToUserException} with the specified detail message. | ||
* | ||
* @param id the detail message. | ||
*/ | ||
public AysRoleAssignedToUserException(String id) { | ||
super("the role is assigned to one or more users id:" + id); | ||
} | ||
|
||
} |
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.