com.atlassian.crowd.exception
Class InvalidCredentialException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.atlassian.crowd.exception.CrowdException
              extended by com.atlassian.crowd.exception.InvalidCredentialException
All Implemented Interfaces:
Serializable

public class InvalidCredentialException
extends CrowdException

Thrown when the supplied credential is not valid.

See Also:
Serialized Form

Constructor Summary
InvalidCredentialException()
           
InvalidCredentialException(String message)
           
InvalidCredentialException(String genericMessage, String policyDescription)
          Use this constructor when you can identify a specific policy that has been violated.
InvalidCredentialException(String message, Throwable cause)
           
InvalidCredentialException(Throwable throwable)
          Default constructor.
 
Method Summary
 String getPolicyDescription()
           
 
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

InvalidCredentialException

public InvalidCredentialException()

InvalidCredentialException

public InvalidCredentialException(String message)

InvalidCredentialException

public InvalidCredentialException(String genericMessage,
                                  @Nullable
                                  String policyDescription)
Use this constructor when you can identify a specific policy that has been violated. If the policy is not known, use one of the other constructors.

Parameters:
genericMessage - a general message describing how this exception happened
policyDescription - a message describing the policy that has been violated

InvalidCredentialException

public InvalidCredentialException(String message,
                                  Throwable cause)

InvalidCredentialException

public InvalidCredentialException(Throwable throwable)
Default constructor.

Parameters:
throwable - the Exception.
Method Detail

getPolicyDescription

@Nullable
public String getPolicyDescription()
Returns:
a description of the policy that has been violated, if available. If such description is not available, this method returns null. In that case, refer to Throwable.getMessage() for a general description of the exception.


Copyright © 2013 Atlassian. All Rights Reserved.