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

public class FeatureSettingNotSupportedException extends DeltaXMLException

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:
  • Constructor Details

    • FeatureSettingNotSupportedException

      public FeatureSettingNotSupportedException(String message, Throwable t, String featureName, boolean proposedValue)
      Creates a new FeatureSettingNotSupportedException.
      Parameters:
      message - The message detail string
      t - A nested throwable should it have lead to or caused this exception
      featureName - the name of the feature that cannot be changed to the specified value
      proposedValue - 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 string
      featureName - the name of the feature that cannot be changed to the specified value
      proposedValue - the proposed, but unsupported, new value for the feature
    • FeatureSettingNotSupportedException

      public FeatureSettingNotSupportedException(Throwable t, String featureName, boolean proposedValue)
      Creates a new FeatureSettingNotSupportedException.
      Parameters:
      t - A nested throwable should it have lead to or caused this exception
      featureName - the name of the feature that cannot be changed to the specified value
      proposedValue - the proposed, but unsupported, new value for the feature
  • Method Details

    • getFeatureName

      public String 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