-
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.
AYS-242 | Role Activation Flow Has Been Created (#336)
- Loading branch information
1 parent
84e90fc
commit be3230a
Showing
9 changed files
with
291 additions
and
0 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
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
28 changes: 28 additions & 0 deletions
28
src/main/java/org/ays/auth/util/exception/AysInvalidRoleStatusException.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,28 @@ | ||
package org.ays.auth.util.exception; | ||
|
||
import org.ays.auth.model.enums.AysRoleStatus; | ||
import org.ays.common.util.exception.AysNotExistException; | ||
|
||
import java.io.Serial; | ||
|
||
/** | ||
* Exception to be thrown when a role's status is invalid for the requested operation. | ||
*/ | ||
public final class AysInvalidRoleStatusException extends AysNotExistException { | ||
|
||
/** | ||
* Unique identifier for serialization. | ||
*/ | ||
@Serial | ||
private static final long serialVersionUID = -933312733826008379L; | ||
|
||
/** | ||
* Constructs a new {@link AysInvalidRoleStatusException} with the specified role status. | ||
* | ||
* @param status the invalid status of the role. | ||
*/ | ||
public AysInvalidRoleStatusException(AysRoleStatus status) { | ||
super("role status is not " + status.toString().toLowerCase() + "!"); | ||
} | ||
|
||
} |
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