Class DataAPIClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.datastax.astra.client.exceptions.DataAPIException
com.datastax.astra.client.exceptions.DataAPIClientException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidConfigurationException
,InvalidEnvironmentException
,InvalidFieldExpressionException
,TooManyDocumentsToCountException
,TooManyRowsToCountException
Exception thrown when there is an error in the client side.
It can be configuration, connectivity or serialization.
- 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
ConstructorsConstructorDescriptionDataAPIClientException
(ErrorCodesClient errorCode, Object... arguments) Constructors providing all arguments and a parent exception.DataAPIClientException
(ErrorCodesClient errorCode, String customMessage) Constructors providing all arguments and a parent exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataAPIClientException
Constructors providing all arguments and a parent exception.- Parameters:
errorCode
- error codearguments
- arguments for the error message
-
DataAPIClientException
Constructors providing all arguments and a parent exception.- Parameters:
errorCode
- error codecustomMessage
- arguments for the error message
-