Package 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
Thrown when an option requiring an argument is not provided with an argument.
- See Also:
-
Constructor Summary
ConstructorDescriptionMissingArgumentException
(String message) Constructs a newMissingArgumentException
with the specified detail message.MissingArgumentException
(Option option) Constructs a newMissingArgumentException
with the specified detail message. -
Method Summary
Methods inherited from class org.apache.commons.cli.ParseException
wrap
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingArgumentException
Constructs a newMissingArgumentException
with the specified detail message.- Parameters:
option
- the option requiring an argument- Since:
- 1.2
-
MissingArgumentException
Constructs a newMissingArgumentException
with the specified detail message.- Parameters:
message
- the detail message
-
-
Method Details
-
getOption
Gets the option requiring an argument that wasn't provided on the command line.- Returns:
- the related option
- Since:
- 1.2
-