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
public static final class Hash.InvalidPlainTextException extends ConstraintViolationException
A plain text is either too short, too long or doesn't match the format requirement- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidPlainTextException(String message, String plainText, Item item, Hash feature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Hash
getFeature()
String
getMessage(boolean withFeature)
String
getPlainText()
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
-
-
-
-
Method Detail
-
getFeature
public Hash getFeature()
- Specified by:
getFeature
in classConstraintViolationException
-
getMessage
public String getMessage(boolean withFeature)
- Specified by:
getMessage
in classConstraintViolationException
-
getPlainText
public String getPlainText()
-
wasLimit
public boolean wasLimit()
Returns true if this exception was raised because theplain text limit
was exceeded.
-
-