Class FeatureNotRecognizedException

All Implemented Interfaces:
Serializable

public class FeatureNotRecognizedException extends DeltaXMLException

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:

  • CommonComparator.setParserFeature(String, boolean)
  • CommonComparator.getParserFeature(String)
Author:
Nigel Whitaker
See Also:
  • Constructor Details

    • FeatureNotRecognizedException

      public FeatureNotRecognizedException(String message, Throwable t, String featureName)
      Creates a new FeatureNotRecognizedException.
      Parameters:
      message - The message string
      t - A nested throwable should it have lead to or caused this exception
      featureName - the feature name that is not recognized
    • FeatureNotRecognizedException

      public FeatureNotRecognizedException(String message, String featureName)
      Creates a new FeatureNotRecognizedException.
      Parameters:
      message - The message string
      featureName - the feature name that is not recognized
    • FeatureNotRecognizedException

      public FeatureNotRecognizedException(Throwable t, String featureName)
      Creates a new FeatureNotRecognizedException.
      Parameters:
      t - A nested throwable should it have lead to or caused this exception
      featureName - the feature name that is not recognized
  • Method Details

    • getFeatureName

      public String getFeatureName()
      Provides the featureName that is not recognized.
      Returns:
      the unrecognized feature name