Package org.ametys.plugins.core.user
Class UserManagementException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.ametys.plugins.core.user.UserManagementException
- All Implemented Interfaces:
Serializable
An exception describing an error that occurred during
the process of a user management operation
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Error when a request to database failedstatic final String
Error when user has no emailstatic final String
Error user inputs are invalidstatic final String
Error when failed to send emailstatic final String
Error when information provided match several usersstatic final String
Error when password change is disabled for the populationstatic final String
Error when id of population provided does not match any user populationstatic final String
Error when the token provided by user does not existsstatic final String
Error when the user directory is unmodifiablestatic final String
Error when login or email provided does not match any user -
Constructor Summary
ConstructorDescriptionUserManagementException
(String status, String message) Build a new exception.UserManagementException
(String status, String message, Throwable e) Wrap aThrowable
in a user management exception status of the exception should be described using a constant fromUserManagementException
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
MAIL_ERROR
Error when failed to send email- See Also:
-
USER_UNKNOWN
Error when login or email provided does not match any user- See Also:
-
POPULATION_UNKNOWN
Error when id of population provided does not match any user population- See Also:
-
NOT_UNIQUE_USER
Error when information provided match several users- See Also:
-
EMPTY_EMAIL
Error when user has no email- See Also:
-
UNMODIFIABLE_USER_DIRECTORY
Error when the user directory is unmodifiable- See Also:
-
TOKEN_UNKNOWN
Error when the token provided by user does not exists- See Also:
-
INVALID_MODIFICATION
Error user inputs are invalid- See Also:
-
DATABASE_ERROR
Error when a request to database failed- See Also:
-
PASSWORD_CHANGE_DISABLED
Error when password change is disabled for the population- See Also:
-
-
Constructor Details
-
UserManagementException
Build a new exception. status of the exception should be described using a constant fromUserManagementException
- Parameters:
status
- the cause that lead to the exception.message
- an informative message
-
UserManagementException
Wrap aThrowable
in a user management exception status of the exception should be described using a constant fromUserManagementException
- Parameters:
status
- the cause that lead to the exception.message
- an informative messagee
- the original exception
-
-
Method Details
-
getStatus
Get the reasons that lead to this exception. This value should always be one of the constant fromUserManagementException
- Returns:
- the status
-