- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- Apache.CLI.ParseException
-
- Apache.CLI.MissingOptionException
-
- All Implemented Interfaces:
java.io.Serializable
public class MissingOptionException extends ParseException
This Class-File has been copied, directly from the Apache Commons Software Foundation. Other than the minor, cosmetic changes (mentioned in the second-list below), this file is perfectly identical to the original that may be found on the Apache Website:apache.org
.- The suggested license for using this file may be read here:
Apache License
- The Source-Code Header for this file may be viewed here:
Source-File Header
- Partial contents of the
'site/resources/images'
directory:Resource Images
Notes about changes that have been made as a result of the import process:- Within all files, the original Package-Name declaration has been changed:
Original: package org.apache.commons.cli;
Updated: package Apache.CLI;
- All Classes and Class-Members (Methods, Fields, etc...) that were previously Annotated
with the
@Deprecated
Annotation have been summarily removed.
- Code Formattings and Styling has been heavily modified to conform to the Standard Java-HTML
Indentation & Styling Choices. The code itself remains identical, with only a few
squiggly-braces
'{' and '}'
being removed, for cosmetic reasons (and for lowering "Developer Stress" Levels)..
Thrown when a required option has not been provided.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Apache/CLI/MissingOptionException.java
- Open New Browser-Tab: Apache/CLI/MissingOptionException.java
File Size: 2,871 Bytes Line Count: 84 '\n' Characters Found
-
-
Constructor Summary
Constructors Constructor Description MissingOptionException(String message)
Constructs a newMissingSelectedException
with the specified detail message.MissingOptionException(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 List
getMissingOptions()
Gets the list of options or option groups missing in the command line parsed.
-
-
-
Constructor Detail
-
MissingOptionException
public MissingOptionException(java.util.List missingOptions)
Constructs a newMissingSelectedException
with the specified list of missing options.- Parameters:
missingOptions
- the list of missing options and groups
-
MissingOptionException
public MissingOptionException(java.lang.String message)
Constructs a newMissingSelectedException
with the specified detail message.- Parameters:
message
- the detail message
-
-
Method Detail
-
getMissingOptions
public java.util.List getMissingOptions()
Gets the list of options or option groups missing in the command line parsed.- Returns:
- the missing options, consisting of String instances for simple options, and OptionGroup instances for required option groups.
- Code:
- Exact Method Body:
return missingOptions;
-
-