Package com.jgcomptech.tools.authc
Class UnknownAccountException
- 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.UnknownAccountException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnknownAccountException extends AccountException
Thrown when attempting to authenticate with a principal that doesn't exist in the system (e.g. by specifying a username that doesn't relate to a user account).Whether or not an application wishes to alert a user logging in to the system of this fact is at the discretion of those responsible for designing the view and what happens when this exception occurs.
- Since:
- 1.5.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnknownAccountException()
Creates a new UnknownAccountException.UnknownAccountException(java.lang.String message)
Constructs a new UnknownAccountException.UnknownAccountException(java.lang.String message, java.lang.Throwable cause)
Constructs a new UnknownAccountException.UnknownAccountException(java.lang.Throwable cause)
Constructs a new UnknownAccountException.
-
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
-
UnknownAccountException
public UnknownAccountException()
Creates a new UnknownAccountException.
-
UnknownAccountException
public UnknownAccountException(java.lang.String message)
Constructs a new UnknownAccountException.- Parameters:
message
- the reason for the exception
-
UnknownAccountException
public UnknownAccountException(java.lang.Throwable cause)
Constructs a new UnknownAccountException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown
-
UnknownAccountException
public UnknownAccountException(java.lang.String message, java.lang.Throwable cause)
Constructs a new UnknownAccountException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown
-
-