Package com.iizix.user
Class UserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.iizix.user.UserException
- All Implemented Interfaces:
Serializable
User exception class used when a user is not permitted an action.
- Author:
- Christopher Mindus
- See Also:
Constructor Summary
ConstructorDescriptionUserException
(UserIdentifier userIdentifier, SigninResult authenticationResult) Creates a user exception with an empty detail message.UserException
(UserIdentifier userIdentifier, String message) Creates a user exception with a message.UserException
(UserIdentifier userIdentifier, String message, Throwable exception) Creates a user exception with a message and an exception cause.Method Summary
Modifier and TypeMethodDescriptionGets the authentication result causing the exception.Gets the User Identifier.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Details
UserException
Creates a user exception with an empty detail message.- Parameters:
userIdentifier
- The user identifier.authenticationResult
- The authentication result causing the error.- Throws:
NullPointerException
- ifuserIdentifier
parameter is null.
UserException
Creates a user exception with a message.- Parameters:
userIdentifier
- The user identifier.message
- the detail message.- Throws:
NullPointerException
- ifuserIdentifier
parameter is null.
UserException
Creates a user exception with a message and an exception cause.- Parameters:
userIdentifier
- The user identifier.message
- the detail message.exception
- the exception, i.e. the real cause.- Throws:
NullPointerException
- ifuserIdentifier
parameter is null.
Method Details
getUserIdentifier
Gets the User Identifier.getAuthenticationResult
Gets the authentication result causing the exception.- Returns:
- The authentication result that caused the error, null if a nested exception caused it (use
@{link
to retrieve it).Throwable.getCause()