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

public class ParameterException extends 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:
  • Field Details

    • parameterLabel

      private String parameterLabel
      The label of the parameter which there was an error retrieving.
  • Constructor Details

    • ParameterException

      public ParameterException(String paramLabel, String message)
      Create a new ParameterException.
      Parameters:
      paramLabel - The parameter label requested, which then caused the error.
      message - A message describing the error.
  • Method Details

    • setParameterLabel

      public void setParameterLabel(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 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 String toString()
      Returns a string representing the information contained in this exception.
      Overrides:
      toString in class Throwable
      Returns:
      A string containing info about this error.