Package com.deltaxml.docbook
Class InvalidParameterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.deltaxml.core.exceptions.DeltaXMLException
com.deltaxml.docbook.InvalidParameterException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a parameter or its value is invalid. For example, the parameter dose not exist or its value is not in the expected range.
- Since:
- 4.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidParameterException(String message, String parameterName, Object parameterValue) Creates a new InvalidParameterException.InvalidParameterException(String message, Throwable t, String parameterName, Object parameterValue) Creates a new InvalidParameterException. -
Method Summary
Modifier and TypeMethodDescriptionProvides the name of the parameter that was causing the problem.Provides the name of the parameter that was causing the problem.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
-
InvalidParameterException
Creates a new InvalidParameterException.- Parameters:
message- The exception message StringparameterName- the parameter which is at faultparameterValue- the value of the parameter
-
InvalidParameterException
public InvalidParameterException(String message, Throwable t, String parameterName, Object parameterValue) Creates a new InvalidParameterException.- Parameters:
message- the Exception message Stringt- a nested Throwable that caused this ExceptionparameterName- the name of the parameter which is at faultparameterValue- the value of the parameter
-
-
Method Details
-
getParameterName
Provides the name of the parameter that was causing the problem.- Returns:
- the name of the parameter that was to be set
-
getParameterValue
Provides the name of the parameter that was causing the problem.- Returns:
- the name of the parameter that was to be set
-