Package org.apache.shiro.authc
Class CredentialsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.shiro.ShiroException
-
- org.apache.shiro.authc.AuthenticationException
-
- org.apache.shiro.authc.CredentialsException
-
- All Implemented Interfaces:
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:
- 0.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CredentialsException()
Creates a new CredentialsException.CredentialsException(String message)
Constructs a new CredentialsException.CredentialsException(String message, Throwable cause)
Constructs a new CredentialsException.CredentialsException(Throwable cause)
Constructs a new CredentialsException.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CredentialsException
public CredentialsException()
Creates a new CredentialsException.
-
CredentialsException
public CredentialsException(String message)
Constructs a new CredentialsException.- Parameters:
message
- the reason for the exception
-
CredentialsException
public CredentialsException(Throwable cause)
Constructs a new CredentialsException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown.
-
-