Class MissingOptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
tripleo.vendor.org_apache_commons_cli.ParseException
tripleo.vendor.org_apache_commons_cli.MissingOptionException
- All Implemented Interfaces:
Serializable
Thrown when a required option has not been provided.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMissingOptionException(@NotNull List missingOptions) Constructs a newMissingSelectedExceptionwith the specified list of missing options.MissingOptionException(String message) Construct a newMissingSelectedExceptionwith the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of options or option groups missing in the command line parsed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingOptionException
Constructs a newMissingSelectedExceptionwith the specified list of missing options.- Parameters:
missingOptions- the list of missing options and groups- Since:
- 1.2
-
MissingOptionException
Construct a newMissingSelectedExceptionwith the specified detail message.- Parameters:
message- the detail message
-
-
Method Details
-
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.
- Since:
- 1.2
-