uk.ac.starlink.task
Class ParameterValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by uk.ac.starlink.task.TaskException
              extended by uk.ac.starlink.task.UsageException
                  extended by uk.ac.starlink.task.ParameterValueException
All Implemented Interfaces:
Serializable

public class ParameterValueException
extends UsageException

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:
Serialized Form

Constructor Summary
ParameterValueException(Parameter par)
           
ParameterValueException(Parameter par, String message)
           
ParameterValueException(Parameter par, String message, Throwable cause)
           
ParameterValueException(Parameter par, Throwable cause)
           
 
Method Summary
 Parameter getParameter()
          Returns the parameter with which this exception is associated.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterValueException

public ParameterValueException(Parameter par)

ParameterValueException

public ParameterValueException(Parameter par,
                               String message)

ParameterValueException

public ParameterValueException(Parameter par,
                               String message,
                               Throwable cause)

ParameterValueException

public ParameterValueException(Parameter par,
                               Throwable cause)
Method Detail

getParameter

public Parameter getParameter()
Returns the parameter with which this exception is associated.

Returns:
parameter


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.