jargs.gnu.exception
Class IllegalOptionValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jargs.gnu.exception.OptionException
              extended by jargs.gnu.exception.IllegalOptionValueException
All Implemented Interfaces:
java.io.Serializable

public class IllegalOptionValueException
extends OptionException

Thrown when an illegal or missing value is given by the user for an option that takes a value.

Author:
Philipp Eichhorn, All JArgs authors see JARGS_LICENCE
See Also:
Serialized Form

Constructor Summary
IllegalOptionValueException(AbstractOption<?> option, java.lang.String value)
          Constructor
 
Method Summary
 AbstractOption<?> getOption()
           
 java.lang.String getValue()
           
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalOptionValueException

public IllegalOptionValueException(AbstractOption<?> option,
                                   java.lang.String value)
Constructor

Parameters:
option - The option whose value was illegal (e.g. "-u").
value - The illegal value.
Method Detail

getOption

public AbstractOption<?> getOption()
Returns:
The option whose value was illegal (e.g. "-u").

getValue

public java.lang.String getValue()
Returns:
The illegal value.