jargs.gnu
Class CmdLineParser.UnknownOptionException

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

public static class CmdLineParser.UnknownOptionException
extends CmdLineParser.OptionException

Thrown when the parsed command-line contains an option that is not recognised. getMessage() returns an error string suitable for reporting the error to the user (in English).

See Also:
Serialized Form

Field Summary
private  java.lang.String optionName
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
(package private) CmdLineParser.UnknownOptionException(java.lang.String optionName)
           
 
Method Summary
 java.lang.String getOptionName()
           
 
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
 

Field Detail

optionName

private java.lang.String optionName
Constructor Detail

CmdLineParser.UnknownOptionException

CmdLineParser.UnknownOptionException(java.lang.String optionName)
Method Detail

getOptionName

public java.lang.String getOptionName()
Returns:
the name of the option that was unknown (e.g. "-u")


Copyright © R. Kevin Cole. All Rights Reserved.