Module com.github.sttk.cliargs
Class FailToSetOptionStoreField
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.sttk.cliargs.exceptions.FailToSetOptionStoreField
- All Implemented Interfaces:
Serializable
Is the exception which indicates that it is failed to set option arguments (including those
from default values) to a field of an option store.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
Constructor Details
-
FailToSetOptionStoreField
public FailToSetOptionStoreField(String field, Class<?> type, List<String> optArgs, Exception cause) Constructs an instance of this class.- Parameters:
field
- The field name of the option store object.type
- The field type of the option store object.optArgs
- The option arguments.cause
- The cause exception.
-
-
Method Details
-
getMessage
Returns a string which represents the content of this exception.- Overrides:
getMessage
in classThrowable
- Returns:
- The exception message.
-