Class ParameterValueConflict

All Implemented Interfaces:
Serializable

public class ParameterValueConflict extends DeltaXMLException

Thrown when an a parameter or feature has incorrect DXP syntax.

The DTD used to specify the DXP format cannot state that two attributes are mutually exclusive. This exception is thrown when errors in the DXP configuration are detected. In particular, when neither the literalValue and parameterRef attributes are present, or when they are both present. Normally exactly one of these attributes should be used.

This exception reports the parameter/feature name and the context in which it was being incorrectly used.

Author:
Nigel Whitaker
See Also:
  • Constructor Details

    • ParameterValueConflict

      public ParameterValueConflict(String message, Throwable t, String parameterName, String parameterContext)
      Creates a new ParameterValueConflict.
      Parameters:
      message - the Exception message String
      t - a throwable which caused this Exception
      parameterName - the name of the unknown parameter
      parameterContext - the context (name of the DXP element, eg: parameter, feature) in which the missing parameter was being used.
    • ParameterValueConflict

      public ParameterValueConflict(String message, String parameterName, String parameterContext)
      Creates a new ParameterValueConflict.
      Parameters:
      message - The exception message string
      parameterName - The name of the unknown parameter/feature
      parameterContext - The context (name of the DXP element, eg: parameter, feature) in which the missing parameter was being used.
  • Method Details

    • getUnkownParameterName

      public String getUnkownParameterName()
      Provides the name of the unknown or undeclared parameter.
      Returns:
      the name of the unknown parameter
    • getUnkownParameterContext

      public String getUnkownParameterContext()
      Provides the context in which the parameter was attempting to be used.
      Returns:
      an element name for the context