Module com.github.sttk.cliargs
Class StoreKeyIsDuplicated
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.sttk.cliargs.exceptions.InvalidOption
com.github.sttk.cliargs.exceptions.StoreKeyIsDuplicated
- All Implemented Interfaces:
Serializable
Is the exception which indicates that there are duplicated store keys among multiple
configurations.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStoreKeyIsDuplicated
(String storeKey, String name) Constructs an instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionReturns a string which represents the content of this exception.option()
Gets the option name that caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
storeKey
The store key that caused this exceptiion. -
name
The first name of the option configuration.
-
-
Constructor Details
-
StoreKeyIsDuplicated
Constructs an instance of this class.- Parameters:
storeKey
- The store key that caused this exception.name
- The first name of the option configuration
-
-
Method Details
-
option
Gets the option name that caused this exception.- Specified by:
option
in classInvalidOption
- Returns:
- The option name.
-
getMessage
Returns a string which represents the content of this exception.- Overrides:
getMessage
in classThrowable
- Returns:
- The exception message.
-