java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.sttk.cliargs.exceptions.InvalidOption
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConfigHasDefaultsButHasNoArg
,ConfigIsArrayButHasNoArg
,OptionArgIsInvalid
,OptionContainsInvalidChar
,OptionIsNotArray
,OptionNameIsDuplicated
,OptionNeedsArg
,OptionTakesNoArg
,StoreKeyIsDuplicated
,UnconfiguredOption
Is the abstract class of the exception that provides a method to retrieve an option name.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructs an instance of this class.protected
InvalidOption
(Throwable cause) Constructs an instance of this class. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidOption
protected InvalidOption()Constructs an instance of this class. -
InvalidOption
Constructs an instance of this class.- Parameters:
cause
- The cause of this exception.
-
-
Method Details
-
option
Gets the option name that caused this exception.- Returns:
- The option name.
-