org.kohsuke.args4j
Class MissingOptionParameterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.kohsuke.args4j.CmdLineException
org.kohsuke.args4j.MissingOptionParameterException
- All Implemented Interfaces:
- Serializable
public class MissingOptionParameterException
- extends CmdLineException
Signals an error where an option is missing parameters.
The Throwable.getMessage()
method returns a human-readable
localized description of the error message.
- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MissingOptionParameterException
public MissingOptionParameterException(String optionName)
getOptionName
public 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 expects a number, then this method returns
"-n".
Copyright © 2003-2011 Kohsuke Kawaguchi. All Rights Reserved.