-
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-307 | User Activation Endpoint Created (#351)
Co-authored-by: Egehan Asal <[email protected]> Co-authored-by: MenekseYuncu <[email protected]>
- Loading branch information
1 parent
39c4990
commit e359f7d
Showing
7 changed files
with
361 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
28 changes: 28 additions & 0 deletions
28
src/main/java/org/ays/auth/util/exception/AysUserNotPassiveException.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.AysUserStatus; | ||
import org.ays.common.util.exception.AysNotExistException; | ||
|
||
import java.io.Serial; | ||
|
||
/** | ||
Exception thrown when a user does not in a passive state. | ||
* This exception extends {@link AysNotExistException}. | ||
*/ | ||
public final class AysUserNotPassiveException extends AysNotExistException { | ||
|
||
/** | ||
* Unique serial version ID. | ||
*/ | ||
@Serial | ||
private static final long serialVersionUID = 3508025652421021710L; | ||
|
||
/** | ||
* Constructs a new {@link AysNotExistException} with the specified detail message. | ||
* | ||
* @param status the detail message. | ||
*/ | ||
public AysUserNotPassiveException(AysUserStatus status) { | ||
super("user status is not with " + 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
Oops, something went wrong.