java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.sttk.cliargs.exceptions.BadFieldType
- All Implemented Interfaces:
Serializable
Is the exception which indicates that a type of a field of an option store is neither a boolean,
a number, a string, nor an array of numbers or strings.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBadFieldType
(String field, Class<?> type) Constructs an instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionReturns a string which represents the content of this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
field
The field name in the option store. -
type
The type of the field in the option store.
-
-
Constructor Details
-
BadFieldType
Constructs an instance of this class.- Parameters:
field
- The field name in the option store.type
- The class of the field in the option store.
-
-
Method Details
-
getMessage
Returns a string which represents the content of this exception.- Overrides:
getMessage
in classThrowable
- Returns:
- The exception message.
-