public class FeatureSettingNotSupportedException extends PipelinedComparatorException
Thrown to indicate that a feature has been set to a value which is not supported or is disallowed.
For correct pipeline operation the use of certain feature settings is restricted. However feature support is still needed, hence this exception.
See PipelinedComparator#setParserFeature(String, boolean)
for further details of the restrictions.
Methods are provided to determine the feature name that was used and the proposed (incorrect) value.
PipelinedComparator#setParserFeature(String, boolean)
,
Serialized FormConstructor and Description |
---|
FeatureSettingNotSupportedException(java.lang.String message,
java.lang.String featureName,
boolean proposedValue)
Creates a new FeatureSettingNotSupportedException.
|
FeatureSettingNotSupportedException(java.lang.String message,
java.lang.Throwable t,
java.lang.String featureName,
boolean proposedValue)
Creates a new FeatureSettingNotSupportedException.
|
FeatureSettingNotSupportedException(java.lang.Throwable t,
java.lang.String featureName,
boolean proposedValue)
Creates a new FeatureSettingNotSupportedException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFeatureName()
Provides the feature name that could not be changed.
|
boolean |
getProposedValue()
Provides the proposed value for the feature change.
|
getCause, getThrowable
public FeatureSettingNotSupportedException(java.lang.String message, java.lang.Throwable t, java.lang.String featureName, boolean proposedValue)
message
- The message detail stringt
- A nested throwable should it have lead to or caused this exceptionfeatureName
- the name of the feature that cannot be changed to the specified valueproposedValue
- the proposed, but unsupported, new value for the featurepublic FeatureSettingNotSupportedException(java.lang.String message, java.lang.String featureName, boolean proposedValue)
message
- The message detail stringfeatureName
- the name of the feature that cannot be changed to the specified valueproposedValue
- the proposed, but unsupported, new value for the featurepublic FeatureSettingNotSupportedException(java.lang.Throwable t, java.lang.String featureName, boolean proposedValue)
t
- A nested throwable should it have lead to or caused this exceptionfeatureName
- the name of the feature that cannot be changed to the specified valueproposedValue
- the proposed, but unsupported, new value for the featurepublic java.lang.String getFeatureName()
public boolean getProposedValue()