Class AuthenticationFailureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.aquima.interactions.foundation.exception.AppException
-
- com.aquima.interactions.ds.studio.exception.AuthenticationFailureException
-
- All Implemented Interfaces:
Serializable
public class AuthenticationFailureException extends AppException
Exception to indicate that authentication is failed.- Since:
- 6.0
- Author:
- Jon van Leuven
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationFailureException(String userName)
Create an authentication exception for a username.AuthenticationFailureException(String userName, Throwable cause)
Create an authentication exception for a username.AuthenticationFailureException(Throwable cause)
Create an authentication exception for a username.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getUserName()
This method returns the user name for which the authentication failed.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AuthenticationFailureException
public AuthenticationFailureException(String userName)
Create an authentication exception for a username.- Parameters:
userName
- The username for which the authentication failed (optional).
-
AuthenticationFailureException
public AuthenticationFailureException(String userName, Throwable cause)
Create an authentication exception for a username.- Parameters:
userName
- The username for which the authentication failed (optional).cause
- The actual cause of the error.
-
AuthenticationFailureException
public AuthenticationFailureException(Throwable cause)
Create an authentication exception for a username.- Parameters:
cause
- The actual cause of the error.
-
-
Method Detail
-
getUserName
public String getUserName()
This method returns the user name for which the authentication failed.- Returns:
- the user name (may be null).
-
-