org.kohsuke.args4j
Class UndefinedOptionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.kohsuke.args4j.CmdLineException
              extended by org.kohsuke.args4j.UndefinedOptionException
All Implemented Interfaces:
java.io.Serializable

public class UndefinedOptionException
extends CmdLineException

Signals that an option is not defined.

The Throwable.getMessage() method returns a human-readable localized description of the error message.

Author:
Kohsuke Kawaguchi (kk@kohsuke.org)
See Also:
Serialized Form

Field Summary
private  java.lang.String optionName
           
 
Constructor Summary
UndefinedOptionException(java.lang.String optionName)
           
 
Method Summary
 java.lang.String getOptionName()
          Returns the name of the option that caused a problem.
 
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 final java.lang.String optionName
Constructor Detail

UndefinedOptionException

public UndefinedOptionException(java.lang.String optionName)
Method Detail

getOptionName

public java.lang.String getOptionName()
Returns the name of the option that caused a problem.

Returns:
For example, if the command line is "-n" where the "-n" option is not recognized, then this method returns "-n".


Copyright © 2003 Kohsuke Kawaguchi. All Rights Reserved.