public class FeatureNotRecognizedException extends PipelinedComparatorException
Thrown to indicate that a feature name has not been recognized.
Features are used to configure various aspects of the PipelinedComparator operation, including parsing and comparison. They are specified with String values to allow run-time pluggability of implementations with different feature sets. In doing so, compile-time type safety is degraded and replaced by this exception.
Associated methods include:
PipelinedComparator#setParserFeature(String, boolean)
PipelinedComparator#getParserFeature(String)
PipelinedComparator#setComparatorFeature(String, boolean)
PipelinedComparator#getComparatorFeature(String)
PipelinedComparator#setParserFeature(String, boolean)
,
PipelinedComparator#setComparatorFeature(String, boolean)
,
Serialized FormConstructor and Description |
---|
FeatureNotRecognizedException(java.lang.String message,
java.lang.String featureName)
Creates a new FeatureNotRecognizedException.
|
FeatureNotRecognizedException(java.lang.String message,
java.lang.Throwable t,
java.lang.String featureName)
Creates a new FeatureNotRecognizedException.
|
FeatureNotRecognizedException(java.lang.Throwable t,
java.lang.String featureName)
Creates a new FeatureNotRecognizedException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFeatureName()
Provides the featureName that is not recognized.
|
getCause, getThrowable
public FeatureNotRecognizedException(java.lang.String message, java.lang.Throwable t, java.lang.String featureName)
message
- The message stringt
- A nested throwable should it have lead to or caused this exceptionfeatureName
- the feature name that is not recognizedpublic FeatureNotRecognizedException(java.lang.String message, java.lang.String featureName)
message
- The message stringfeatureName
- the feature name that is not recognizedpublic FeatureNotRecognizedException(java.lang.Throwable t, java.lang.String featureName)
t
- A nested throwable should it have lead to or caused this exceptionfeatureName
- the feature name that is not recognized