Package 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
Thrown when the supplied credential is not valid.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidCredentialException
(String message) InvalidCredentialException
(String genericMessage, String policyDescription, Collection<PasswordConstraint> violatedConstraints) Use this constructor when you can identify a specific policy that has been violated.InvalidCredentialException
(String message, Throwable cause) InvalidCredentialException
(String policyDescription, Collection<PasswordConstraint> violatedConstraints) InvalidCredentialException
(Throwable throwable) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidCredentialException
public InvalidCredentialException() -
InvalidCredentialException
-
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 policyDescription, Collection<PasswordConstraint> violatedConstraints) -
InvalidCredentialException
-
InvalidCredentialException
Default constructor.- Parameters:
throwable
- theException
.
-
-
Method Details
-
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
- Returns:
- a list of all the constraints that were violated, or null if the policy that has been violated is not known
-