public class PropertyNotRecognizedException extends PipelinedComparatorException
Thrown to indicate a problem setting a property on the PipelinedComparator.
Properties provide an extensible mechanism for configuring the operation of the pipeline. Unlike features these methods accept or provide complex String, or more generally Object, values rather than booleans. They are used in different contexts:
PipelinedComparator#setParserProperty(String, Object)
PipelinedComparator#setComparatorProperty(String, Object)
PipelinedComparator#setOutputProperty(String, String)
The PropertyNotRecognizedException.getPropertyName()
method provides access to the name that was attempted to be set and which was not recognized.
Please consult the appropriate method descriptions for full details of the supported properties.
PipelinedComparator#setParserProperty(String, Object)
,
PipelinedComparator#setComparatorProperty(String, Object)
,
PipelinedComparator#setOutputProperty(String, String)
,
PipelinedComparator#getParserProperty(String)
,
PipelinedComparator#getComparatorProperty(String)
,
PipelinedComparator#getOutputProperty(String)
,
Serialized FormConstructor and Description |
---|
PropertyNotRecognizedException(java.lang.String message,
java.lang.String propertyName)
Creates a new PropertyNotRecognizedException.
|
PropertyNotRecognizedException(java.lang.String message,
java.lang.Throwable e,
java.lang.String propertyName)
Creates a new PropertyNotRecognizedException.
|
PropertyNotRecognizedException(java.lang.Throwable e,
java.lang.String propertyName)
Creates a new PropertyNotRecognizedException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPropertyName()
Reports the name of the property which was not recognized.
|
getCause, getThrowable
public PropertyNotRecognizedException(java.lang.String message, java.lang.Throwable e, java.lang.String propertyName)
message
- The message stringe
- A nested throwable should it have lead to this exceptionpropertyName
- the name of the property being set or requestedpublic PropertyNotRecognizedException(java.lang.String message, java.lang.String propertyName)
message
- The message stringpropertyName
- the name of the property being set or requestedpublic PropertyNotRecognizedException(java.lang.Throwable e, java.lang.String propertyName)
e
- A nested throwable should it have lead to this exceptionpropertyName
- the name of the property being set or requested