public abstract class CommandLineParser.OptionException extends Exception
Modifier | Constructor and Description |
---|---|
protected |
OptionException(String msg)
An error occurred while doing an operation that involved an
option (lookup of the option, data retrieval, etc.)
|
protected |
OptionException(String option,
String msg)
An error occurred while doing an operation that involved an
option (lookup of the option, data retrieval, etc.)
|
Modifier and Type | Method and Description |
---|---|
String |
getOption()
Get the name of the option that caused the exception to
be thrown.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected OptionException(String msg)
msg
- A non-localized string description of the errorprotected OptionException(String option, String msg)
option
- The option that was involved in operation that
failedmsg
- A non-localized string description of the errorpublic String getOption()
Copyright © 2003, 2023, Oracle and/or its affiliates.