public class UserException extends Exception
Constructor and Description |
---|
UserException(UserIdentifier userIdentifier,
LoginResult 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.
|
Modifier and Type | Method and Description |
---|---|
LoginResult |
getAuthenticationResult()
Gets the authentication result causing the exception.
|
UserIdentifier |
getUserIdentifier()
Gets the User Identifier.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UserException(UserIdentifier userIdentifier, LoginResult authenticationResult)
userIdentifier
- The user identifier.authenticationResult
- The authentication result causing the error.NullPointerException
- if userIdentifier
parameter is null.public UserException(UserIdentifier userIdentifier, String message)
userIdentifier
- The user identifier.message
- the detail message.NullPointerException
- if userIdentifier
parameter is null.public UserException(UserIdentifier userIdentifier, String message, Throwable exception)
userIdentifier
- The user identifier.message
- the detail message.exception
- the exception, i.e. the real cause.NullPointerException
- if userIdentifier
parameter is null.public UserIdentifier getUserIdentifier()
public LoginResult getAuthenticationResult()
@{link Throwable.getCause()
to retrieve it).iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.