Package com.jgcomptech.tools.authc
Class DisabledAccountException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.jgcomptech.tools.authc.AuthenticationException
-
- com.jgcomptech.tools.authc.AccountException
-
- com.jgcomptech.tools.authc.DisabledAccountException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
LockedAccountException
public class DisabledAccountException extends AccountException
Thrown when attempting to authenticate and the corresponding account has been disabled for some reason.- Since:
- 1.5.0
- See Also:
LockedAccountException
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DisabledAccountException()
Creates a new DisabledAccountException.DisabledAccountException(java.lang.String message)
Constructs a new DisabledAccountException.DisabledAccountException(java.lang.String message, java.lang.Throwable cause)
Constructs a new DisabledAccountException.DisabledAccountException(java.lang.Throwable cause)
Constructs a new DisabledAccountException.
-
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
-
DisabledAccountException
public DisabledAccountException()
Creates a new DisabledAccountException.
-
DisabledAccountException
public DisabledAccountException(java.lang.String message)
Constructs a new DisabledAccountException.- Parameters:
message
- the reason for the exception
-
DisabledAccountException
public DisabledAccountException(java.lang.Throwable cause)
Constructs a new DisabledAccountException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown
-
DisabledAccountException
public DisabledAccountException(java.lang.String message, java.lang.Throwable cause)
Constructs a new DisabledAccountException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown
-
-