com.atlassian.crowd.exception
Class InvalidCredentialException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.atlassian.crowd.exception.CrowdException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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 happenedpolicyDescription
- 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
.
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.