Class MissingOptionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.aspectran.shell.command.option.OptionParserException
-
- com.aspectran.shell.command.option.MissingOptionException
-
- All Implemented Interfaces:
java.io.Serializable
public class MissingOptionException extends OptionParserException
Thrown when a required option has not been provided.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MissingOptionException(java.lang.String message)Construct a newMissingSelectedExceptionwith the specified detail message.MissingOptionException(java.util.List<?> missingOptions)Constructs a newMissingSelectedExceptionwith the specified list of missing options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<?>getMissingOptions()Returns the list of options or option groups missing in the command line parsed.
-
-
-
Constructor Detail
-
MissingOptionException
public MissingOptionException(java.lang.String message)
Construct a newMissingSelectedExceptionwith the specified detail message.- Parameters:
message- the detail message
-
MissingOptionException
public MissingOptionException(java.util.List<?> missingOptions)
Constructs a newMissingSelectedExceptionwith the specified list of missing options.- Parameters:
missingOptions- the list of missing options and groups
-
-