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,
Collection<PasswordConstraint> violatedConstraints)
- 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 violatedviolatedConstraints - a list of which constraints were violated to cause the failure
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.
getViolatedConstraints
@Nullable
public Collection<PasswordConstraint> getViolatedConstraints()
- Returns:
- a list of all the constraints that were violated, or null if the policy that has been violated
is not known
Copyright © 2015 Atlassian. All Rights Reserved.