org.apache.commons.cli
Class MissingArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.cli.ParseException
org.apache.commons.cli.MissingArgumentException
- All Implemented Interfaces:
- Serializable
public class MissingArgumentException
- extends ParseException
Thrown when an option requiring an argument
is not provided with an argument.
- Version:
- $Revision: 680644 $, $Date: 2008-07-29 01:13:48 -0700 (Tue, 29 Jul 2008) $
- Author:
- John Keyes (john at integralsource.com)
- See Also:
- Serialized Form
Method Summary |
Option |
getOption()
Return the option requiring an argument that wasn't provided
on the command line. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MissingArgumentException
public MissingArgumentException(String message)
- Construct a new
MissingArgumentException
with the specified detail message.
- Parameters:
message
- the detail message
MissingArgumentException
public MissingArgumentException(Option option)
- Construct a new
MissingArgumentException
with the specified detail message.
- Parameters:
option
- the option requiring an argument- Since:
- 1.2
getOption
public Option getOption()
- Return the option requiring an argument that wasn't provided
on the command line.
- Returns:
- the related option
- Since:
- 1.2
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.