Package uk.ac.starlink.task
Class ParameterValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
uk.ac.starlink.task.TaskException
uk.ac.starlink.task.UsageException
uk.ac.starlink.task.ParameterValueException
- All Implemented Interfaces:
Serializable
Exception generated when the value of a parameter is invalid.
Note each of the constructors takes the parameter in question as its first argument.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParameterValueException
(Parameter<?> par) ParameterValueException
(Parameter<?> par, String message) ParameterValueException
(Parameter<?> par, String message, Throwable cause) ParameterValueException
(Parameter<?> par, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionParameter
<?> Returns the parameter with which this exception is associated.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParameterValueException
-
ParameterValueException
-
ParameterValueException
-
ParameterValueException
-
-
Method Details
-
getParameter
Returns the parameter with which this exception is associated.- Returns:
- parameter
-