Package org.dspace.app.rest.exception
Class PasswordNotValidException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.dspace.app.rest.exception.UnprocessableEntityException
org.dspace.app.rest.exception.PasswordNotValidException
- All Implemented Interfaces:
Serializable,TranslatableException
public class PasswordNotValidException
extends UnprocessableEntityException
implements TranslatableException
This class provides an exception to be used when trying to create an EPerson
with password that not match regular expression configured in this
variable "authentication-password.regex-validation.pattern" in dspace.cfg or during the patch of password.
- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk@4science.com)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.dspace.app.rest.exception.TranslatableException
getLocalizedMessage, getLocalizedMessage, getMessage
-
Field Details
-
MESSAGE_KEY
- See Also:
-
-
Constructor Details
-
PasswordNotValidException
public PasswordNotValidException() -
PasswordNotValidException
-
-
Method Details
-
getMessageKey
- Specified by:
getMessageKeyin interfaceTranslatableException- Returns:
- message key (used for lookup with
I18nUtil)
-