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 SummaryConstructorsConstructorDescription- UserException- (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 SummaryModifier 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- UserExceptionCreates a user exception with an empty detail message.- Parameters:
- userIdentifier- The user identifier.
- authenticationResult- The authentication result causing the error.
- Throws:
- NullPointerException- if- userIdentifierparameter is null.
 
- UserExceptionCreates a user exception with a message.- Parameters:
- userIdentifier- The user identifier.
- message- the detail message.
- Throws:
- NullPointerException- if- userIdentifierparameter is null.
 
- UserExceptionCreates 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- if- userIdentifierparameter is null.
 
 
- Method Details- getUserIdentifierGets the User Identifier.
- getAuthenticationResultGets the authentication result causing the exception.- Returns:
- The authentication result that caused the error, null if a nested exception caused it (use @{linkto retrieve it).Throwable.getCause()