Package com.exedio.cope.pattern
Class Hash.InvalidPlainTextException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.exedio.cope.ConstraintViolationException
com.exedio.cope.pattern.Hash.InvalidPlainTextException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Hash
A plain text is either too short, too long or doesn't match the format requirement
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidPlainTextException
(String message, String plainText, Item item, Hash feature) -
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(boolean withFeature) boolean
wasLimit()
Returns true if this exception was raised because theplain text limit
was exceeded.Methods inherited from class com.exedio.cope.ConstraintViolationException
getItem, getItemID, getItemPhrase, getItemText, getMessage, getMessageWithoutFeature
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidPlainTextException
-
-
Method Details
-
getFeature
- Specified by:
getFeature
in classConstraintViolationException
-
getMessage
- Specified by:
getMessage
in classConstraintViolationException
-
getPlainText
-
wasLimit
public boolean wasLimit()Returns true if this exception was raised because theplain text limit
was exceeded.
-