public class ParameterValueConflict extends DXPConfigurationException
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.
DXPConfiguration#generate()
,
DXPConfiguration#generate(java.util.Map, java.util.Map)
,
Serialized FormConstructor and Description |
---|
ParameterValueConflict(java.lang.String message,
java.lang.String parameterName,
java.lang.String parameterContext)
Creates a new ParameterValueConflict.
|
ParameterValueConflict(java.lang.String message,
java.lang.Throwable t,
java.lang.String parameterName,
java.lang.String parameterContext)
Creates a new ParameterValueConflict.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUnkownParameterContext()
Provides the context in which the parameter was attempting to be used.
|
java.lang.String |
getUnkownParameterName()
Provides the name of the unknown or undeclared parameter.
|
getCause, getThrowable
public ParameterValueConflict(java.lang.String message, java.lang.Throwable t, java.lang.String parameterName, java.lang.String parameterContext)
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.public ParameterValueConflict(java.lang.String message, java.lang.String parameterName, java.lang.String parameterContext)
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.public java.lang.String getUnkownParameterName()
public java.lang.String getUnkownParameterContext()