org.apache.shiro.authc
Class CredentialsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.shiro.ShiroException
                  extended by org.apache.shiro.authc.AuthenticationException
                      extended by 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
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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.

CredentialsException

public CredentialsException(String message,
                            Throwable cause)
Constructs a new CredentialsException.

Parameters:
message - the reason for the exception
cause - the underlying Throwable that caused this exception to be thrown.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.