For updates and more see

Class CmdLineParser.IllegalOptionValueException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jargs.gnu.CmdLineParser.OptionException
              extended by jargs.gnu.CmdLineParser.IllegalOptionValueException
All Implemented Interfaces:
Enclosing class:

public static class CmdLineParser.IllegalOptionValueException
extends CmdLineParser.OptionException

Thrown when an illegal or missing value is given by the user for an option that takes a value. getMessage() returns an error string suitable for reporting the error to the user (in English).

See Also:
Serialized Form

Constructor Summary
CmdLineParser.IllegalOptionValueException(CmdLineParser.Option opt, java.lang.String value)
Method Summary
 CmdLineParser.Option 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public CmdLineParser.IllegalOptionValueException(CmdLineParser.Option opt,
                                                 java.lang.String value)
Method Detail


public CmdLineParser.Option getOption()
the name of the option whose value was illegal (e.g. "-u")


public java.lang.String getValue()
the illegal value

For updates and more see

Copyright © 2001-2003 Steve Purcell. Copyright © 2002 Vidar Holen. Copyright © 2002 Michal Ceresna. Copyright © 2005 Ewan Mellor. Released under the terms of the BSD licence.