jargs.gnu
Class CmdLineParser.IllegalOptionValueException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--jargs.gnu.CmdLineParser.OptionException
                    |
                    +--jargs.gnu.CmdLineParser.IllegalOptionValueException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
CmdLineParser

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, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmdLineParser.IllegalOptionValueException

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

getOption

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

getValue

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


Copyright © 2004 Sourceforge. All Rights Reserved.