Class CursorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.datastax.astra.client.exceptions.DataAPIException
com.datastax.astra.client.exceptions.CursorException
- All Implemented Interfaces:
Serializable
Represents an exception that occurs when there is an error related to a database cursor.
This exception extends
DataAPIException
and provides additional context about
the state of the cursor when the error occurred.- 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
ConstructorDescriptionCursorException
(String errorMessage, String state) Constructs a newCursorException
with the specified error message and cursor state. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CursorException
Constructs a newCursorException
with the specified error message and cursor state.- Parameters:
errorMessage
- a descriptive error messagestate
- the state of the cursor at the time of the error
-