Class PasswordPolicyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.aristaflow.adept2.base.security.PasswordPolicyException
-
- All Implemented Interfaces:
Serializable
public class PasswordPolicyException extends Exception
APasswordPolicyException
is thrown when setting or changing a password and the new password doesn't comply to certain restrictions (like minimum length).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PasswordPolicyException()
Constructs a newPasswordPolicyException
withnull
.PasswordPolicyException(String message)
Constructs a newPasswordPolicyException
with the given detail message.PasswordPolicyException(String message, String problem)
Constructs a newPasswordPolicyException
with the given detail message and problem.PasswordPolicyException(String message, Throwable cause)
Constructs a newPasswordPolicyException
withnull
.PasswordPolicyException(Throwable cause)
Constructs a newPasswordPolicyException
withnull
as detail message and the given cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getProblem()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PasswordPolicyException
public PasswordPolicyException()
Constructs a newPasswordPolicyException
withnull
. as detail message.
-
PasswordPolicyException
public PasswordPolicyException(String message)
Constructs a newPasswordPolicyException
with the given detail message.- Parameters:
message
- the detail message
-
PasswordPolicyException
public PasswordPolicyException(String message, String problem)
Constructs a newPasswordPolicyException
with the given detail message and problem.- Parameters:
message
- the detail messageproblem
- the actual problem of the password
-
PasswordPolicyException
public PasswordPolicyException(String message, Throwable cause)
Constructs a newPasswordPolicyException
withnull
. as detail message and the given cause.- Parameters:
message
- the detail messagecause
- the cause of this exception
-
PasswordPolicyException
public PasswordPolicyException(Throwable cause)
Constructs a newPasswordPolicyException
withnull
as detail message and the given cause.- Parameters:
cause
- the cause of this exception
-
-
Method Detail
-
getProblem
public String getProblem()
- Returns:
- The problem of the password.
-
-