|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.commons.cli.ParseException
org.apache.commons.cli.MissingOptionException
public class MissingOptionException
Thrown when a required option has not been provided.
Field Summary | |
---|---|
private java.util.List |
missingOptions
The list of missing options |
Constructor Summary | |
---|---|
MissingOptionException(java.util.List missingOptions)
Constructs a new MissingSelectedException with the
specified list of missing options. |
|
MissingOptionException(java.lang.String message)
Construct a new MissingSelectedException
with the specified detail message. |
Method Summary | |
---|---|
private static java.lang.String |
createMessage(java.util.List missingOptions)
Build the exception message from the specified list of options. |
java.util.List |
getMissingOptions()
Return the list of options (as strings) missing in the command line parsed. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.List missingOptions
Constructor Detail |
---|
public MissingOptionException(java.lang.String message)
MissingSelectedException
with the specified detail message.
message
- the detail messagepublic MissingOptionException(java.util.List missingOptions)
MissingSelectedException
with the
specified list of missing options.
missingOptions
- the list of missing optionsMethod Detail |
---|
public java.util.List getMissingOptions()
private static java.lang.String createMessage(java.util.List missingOptions)
missingOptions
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |