Package org.apache.commons.cli
Class MissingOptionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.commons.cli.ParseException
-
- org.apache.commons.cli.MissingOptionException
-
- All Implemented Interfaces:
java.io.Serializable
public class MissingOptionException extends ParseException
Thrown when a required option has not been provided.- 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
-
-
Constructor Summary
Constructors Constructor Description MissingOptionException(java.lang.String message)
Construct a newMissingSelectedException
with the specified detail message.MissingOptionException(java.util.List missingOptions)
Constructs a newMissingSelectedException
with the specified list of missing options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List
getMissingOptions()
Return the list of options (as strings) missing in the command line parsed.
-
-
-
Constructor Detail
-
MissingOptionException
public MissingOptionException(java.lang.String message)
Construct a newMissingSelectedException
with the specified detail message.- Parameters:
message
- the detail message
-
MissingOptionException
public MissingOptionException(java.util.List missingOptions)
Constructs a newMissingSelectedException
with the specified list of missing options.- Parameters:
missingOptions
- the list of missing options- Since:
- 1.2
-
-
Method Detail
-
getMissingOptions
public java.util.List getMissingOptions()
Return the list of options (as strings) missing in the command line parsed.- Returns:
- the missing options
- Since:
- 1.2
-
-