Package com.deltaxml.core.exceptions
Class UnknownParameterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.deltaxml.core.exceptions.DeltaXMLException
com.deltaxml.core.exceptions.UnknownParameterException
- All Implemented Interfaces:
Serializable
Thrown when an attempt was made to reference an unknown or undeclared DXP parameter.
It is possible to use a parameter name which has not been declared in the DXP pipelineParameters section. This exception reports that name and the context in which it was being incorrectly used.
- Author:
- Nigel Whitaker
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnknownParameterException(String message, String parameterName, String parameterContext) Creates a new UnknownParameterException. -
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
-
UnknownParameterException
Creates a new UnknownParameterException.- Parameters:
message- The exception message stringparameterName- The name of the unknown parameterparameterContext- 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
-