Package com.deltaxml.core.exceptions
Class ParameterValueConflict
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.deltaxml.core.exceptions.DeltaXMLException
com.deltaxml.core.exceptions.ParameterValueConflict
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionParameterValueConflict(String message, String parameterName, String parameterContext) Creates a new ParameterValueConflict.ParameterValueConflict(String message, Throwable t, String parameterName, String parameterContext) Creates a new ParameterValueConflict. -
Method Summary
Modifier and TypeMethodDescriptionProvides the context in which the parameter was attempting to be used.Provides the name of the unknown or undeclared parameter.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
-
ParameterValueConflict
public ParameterValueConflict(String message, Throwable t, String parameterName, String parameterContext) Creates a new ParameterValueConflict.- Parameters:
message- the Exception message Stringt- a throwable which caused this ExceptionparameterName- the name of the unknown parameterparameterContext- the context (name of the DXP element, eg: parameter, feature) in which the missing parameter was being used.
-
ParameterValueConflict
Creates a new ParameterValueConflict.- Parameters:
message- The exception message stringparameterName- The name of the unknown parameter/featureparameterContext- The context (name of the DXP element, eg: parameter, feature) in which the missing parameter was being used.
-
-
Method Details
-
getUnkownParameterName
Provides the name of the unknown or undeclared parameter.- Returns:
- the name of the unknown parameter
-
getUnkownParameterContext
Provides the context in which the parameter was attempting to be used.- Returns:
- an element name for the context
-