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) booleanwasLimit()Returns true if this exception was raised because theplain text limitwas exceeded.Methods inherited from class com.exedio.cope.ConstraintViolationException
getItem, getItemID, getItemPhrase, getItemText, getMessage, getMessageWithoutFeatureMethods 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:
getFeaturein classConstraintViolationException
-
getMessage
- Specified by:
getMessagein classConstraintViolationException
-
getPlainText
-
wasLimit
public boolean wasLimit()Returns true if this exception was raised because theplain text limitwas exceeded.
-