Class ParameterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
gov.nih.mipav.model.scripting.parameters.ParameterException
- All Implemented Interfaces:
Serializable
Exception indicating an error encounted while retrieving a script parameter (i.e., it doesn't exist or is of an unexpected type).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe label of the parameter which there was an error retrieving. -
Constructor Summary
ConstructorsConstructorDescriptionParameterException(String paramLabel, String message) Create a new ParameterException. -
Method Summary
Modifier and TypeMethodDescriptionReturn the parameter label which caused this parameter exception.voidsetParameterLabel(String paramLabel) Change the parameter label which caused this parameter exception.toString()Returns a string representing the information contained in this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
parameterLabel
The label of the parameter which there was an error retrieving.
-
-
Constructor Details
-
ParameterException
Create a new ParameterException.- Parameters:
paramLabel- The parameter label requested, which then caused the error.message- A message describing the error.
-
-
Method Details
-
setParameterLabel
Change the parameter label which caused this parameter exception.- Parameters:
paramLabel- The label of the parameter which we tried to retrieve from the parameter table.
-
getParameterLabel
Return the parameter label which caused this parameter exception.- Returns:
- The label of the parameter which we tried to retrieve from the parameter table.
-
toString
Returns a string representing the information contained in this exception.
-