Package com.jgcomptech.tools.authc
Class CredentialsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.jgcomptech.tools.authc.AuthenticationException
-
- com.jgcomptech.tools.authc.CredentialsException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ExpiredCredentialsException
,IncorrectCredentialsException
public class CredentialsException extends AuthenticationException
Exception thrown due to a problem with the credential(s) submitted for an account during the authentication process.- Since:
- 1.5.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CredentialsException()
Creates a new CredentialsException.CredentialsException(java.lang.String message)
Constructs a new CredentialsException.CredentialsException(java.lang.String message, java.lang.Throwable cause)
Constructs a new CredentialsException.CredentialsException(java.lang.Throwable cause)
Constructs a new CredentialsException.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertThrown(@NotNull java.lang.Runnable runnable)
Asserts that the specified runnable throws this exception and if not throws an junit assertion failure.
-
-
-
Constructor Detail
-
CredentialsException
public CredentialsException()
Creates a new CredentialsException.
-
CredentialsException
public CredentialsException(java.lang.String message)
Constructs a new CredentialsException.- Parameters:
message
- the reason for the exception
-
CredentialsException
public CredentialsException(java.lang.Throwable cause)
Constructs a new CredentialsException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown
-
CredentialsException
public CredentialsException(java.lang.String message, java.lang.Throwable cause)
Constructs a new CredentialsException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown
-
-