Class InvalidConfigurationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.datastax.astra.client.exceptions.DataAPIException
com.datastax.astra.client.exceptions.InvalidConfigurationException
- All Implemented Interfaces:
Serializable
Exception thrown when the configuration is invalid.
- See Also:
-
Field Summary
Fields inherited from class com.datastax.astra.client.exceptions.DataAPIException
DEFAULT_ERROR_CODE, DEFAULT_ERROR_MESSAGE, ERROR_CODE_HTTP, ERROR_CODE_INTERRUPTED, ERROR_CODE_RANDOM, ERROR_CODE_SERIALIZATION, ERROR_CODE_TIMEOUT
-
Constructor Summary
ConstructorDescriptionInvalidConfigurationException
(ClientErrorCodes code, String message) Constructor with code and message -
Method Summary
Modifier and TypeMethodDescriptionstatic void
throwErrorMissingAnnotation
(String annotation, String bean, String operation) Format error message.static void
throwErrorMissingConfiguration
(String operation, String configParameter) Format error message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidConfigurationException
Constructor with code and message- Parameters:
code
- error codemessage
- error message
-
-
Method Details
-
throwErrorMissingConfiguration
Format error message.- Parameters:
operation
- operation returning the errorconfigParameter
- parameter current environment
-
throwErrorMissingAnnotation
Format error message.- Parameters:
annotation
- annotationbean
- beanoperation
- operation
-