Package com.deltaxml.core.exceptions
Class FeatureSettingNotSupportedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.deltaxml.core.exceptions.DeltaXMLException
com.deltaxml.core.exceptions.FeatureSettingNotSupportedException
- All Implemented Interfaces:
Serializable
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 CommonComparator.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.
- Author:
- Nigel Whitaker
- See Also:
-
CommonComparator.setParserFeature(String, boolean)- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureSettingNotSupportedException(String message, String featureName, boolean proposedValue) Creates a new FeatureSettingNotSupportedException.FeatureSettingNotSupportedException(String message, Throwable t, String featureName, boolean proposedValue) Creates a new FeatureSettingNotSupportedException.FeatureSettingNotSupportedException(Throwable t, String featureName, boolean proposedValue) Creates a new FeatureSettingNotSupportedException. -
Method Summary
Modifier and TypeMethodDescriptionProvides the feature name that could not be changed.booleanProvides the proposed value for the feature change.Methods inherited from class com.deltaxml.core.exceptions.DeltaXMLException
getCause, getThrowableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FeatureSettingNotSupportedException
public FeatureSettingNotSupportedException(String message, Throwable t, String featureName, boolean proposedValue) Creates a new FeatureSettingNotSupportedException.- Parameters:
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 feature
-
FeatureSettingNotSupportedException
public FeatureSettingNotSupportedException(String message, String featureName, boolean proposedValue) Creates a new FeatureSettingNotSupportedException.- Parameters:
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 feature
-
FeatureSettingNotSupportedException
Creates a new FeatureSettingNotSupportedException.- Parameters:
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 feature
-
-
Method Details
-
getFeatureName
Provides the feature name that could not be changed.- Returns:
- the unsuppored feature modification
-
getProposedValue
public boolean getProposedValue()Provides the proposed value for the feature change.- Returns:
- the proposed new value
-