Class ParameterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- gov.nih.mipav.model.scripting.parameters.ParameterException
-
- All Implemented Interfaces:
java.io.Serializable
public class ParameterException extends java.lang.RuntimeException
Exception indicating an error encounted while retrieving a script parameter (i.e., it doesn't exist or is of an unexpected type).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
parameterLabel
The label of the parameter which there was an error retrieving.
-
Constructor Summary
Constructors Constructor Description ParameterException(java.lang.String paramLabel, java.lang.String message)
Create a new ParameterException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getParameterLabel()
Return the parameter label which caused this parameter exception.void
setParameterLabel(java.lang.String paramLabel)
Change the parameter label which caused this parameter exception.java.lang.String
toString()
Returns a string representing the information contained in this exception.
-
-
-
Method Detail
-
setParameterLabel
public void setParameterLabel(java.lang.String paramLabel)
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
public java.lang.String 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
public java.lang.String toString()
Returns a string representing the information contained in this exception.- Overrides:
toString
in classjava.lang.Throwable
- Returns:
- A string containing info about this error.
-
-