For updates and more see

Class CmdLineParser.UnknownOptionException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jargs.gnu.CmdLineParser.OptionException
              extended by jargs.gnu.CmdLineParser.UnknownOptionException
All Implemented Interfaces:
Direct Known Subclasses:
CmdLineParser.NotFlagException, CmdLineParser.UnknownSuboptionException
Enclosing class:

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

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

Method Detail


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

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.