Package com.portal.common
Class CommandLineParser.OptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.portal.common.CommandLineParser.OptionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CommandLineParser.NoSuchOptionException
,CommandLineParser.OptionDataException
,CommandLineParser.ValueOutOfBoundsException
- Enclosing class:
CommandLineParser
Signals that an exception occurred while doing an operation that
involved an option (lookup of the option, data retrieval, etc.)
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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.) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OptionException
An error occurred while doing an operation that involved an option (lookup of the option, data retrieval, etc.)- Parameters:
msg
- A non-localized string description of the error
-
OptionException
An error occurred while doing an operation that involved an option (lookup of the option, data retrieval, etc.)- Parameters:
option
- The option that was involved in operation that failedmsg
- A non-localized string description of the error
-
-
Method Details
-
getOption
Get the name of the option that caused the exception to be thrown.- Returns:
- the name of the option that caused the exception to be thrown.
-