Package com.jgcomptech.tools.authc
Class AccountException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.jgcomptech.tools.authc.AuthenticationException
-
- com.jgcomptech.tools.authc.AccountException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ConcurrentAccessException
,DisabledAccountException
,ExcessiveAttemptsException
,UnknownAccountException
public class AccountException extends AuthenticationException
Exception thrown due to a problem with the account under which an authentication attempt is being executed.- Since:
- 1.5.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccountException()
Creates a new AccountException.AccountException(java.lang.String message)
Constructs a new AccountException.AccountException(java.lang.String message, java.lang.Throwable cause)
Constructs a new AccountException.AccountException(java.lang.Throwable cause)
Constructs a new AccountException.
-
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
-
AccountException
public AccountException()
Creates a new AccountException.
-
AccountException
public AccountException(java.lang.String message)
Constructs a new AccountException.- Parameters:
message
- the reason for the exception
-
AccountException
public AccountException(java.lang.Throwable cause)
Constructs a new AccountException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown
-
AccountException
public AccountException(java.lang.String message, java.lang.Throwable cause)
Constructs a new AccountException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown
-
-