Package | Description |
---|---|
com.datastax.driver.core.exceptions |
Exceptions thrown by the DataStax Java driver for Cassandra.
|
com.datastax.driver.core.policies |
Policies that allow to control some of the behavior of the DataStax Java driver for Cassandra.
|
Modifier and Type | Class and Description |
---|---|
class |
AlreadyExistsException
Exception thrown when a query attempts to create a keyspace or table that already exists.
|
class |
AuthenticationException
Indicates an error during the authentication phase while connecting to a node.
|
class |
BootstrappingException
Indicates that the contacted host was bootstrapping when it received a read query.
|
class |
BusyConnectionException
Indicates that a connection has run out of stream IDs.
|
class |
BusyPoolException
Indicates that a connection pool has run out of available connections.
|
class |
CodecNotFoundException
Thrown when a suitable
TypeCodec cannot be found by
CodecRegistry instances. |
class |
ConnectionException
Indicates that a connection to a host has encountered a problem
and that it should be closed.
|
class |
DriverInternalError
An unexpected error happened internally.
|
class |
FrameTooLongException
Indicates that the response frame for a request exceeded
Frame.Decoder.DecoderForStreamIdSize.MAX_FRAME_LENGTH
(default: 256MB, configurable via com.datastax.driver.NATIVE_TRANSPORT_MAX_FRAME_SIZE_IN_MB
system property) and thus was not parsed. |
class |
FunctionExecutionException
Error during the execution of a function.
|
class |
InvalidConfigurationInQueryException
A specific invalid query exception that indicates that the query is invalid
because of some configuration problem.
|
class |
InvalidQueryException
Indicates a syntactically correct but invalid query.
|
class |
InvalidTypeException
Thrown when a
TypeCodec
is unable to perform the requested operation (serialization,
deserialization, parsing or formatting) because the
object or the byte buffer content being processed does not
comply with the expected Java and/or CQL type. |
class |
NoHostAvailableException
Exception thrown when a query cannot be performed because no host is
available.
|
class |
OperationTimedOutException
Thrown on a client-side timeout, i.e.
|
class |
OverloadedException
Indicates that the contacted host reported itself being overloaded.
|
class |
PagingStateException
Indicates an error while deserializing a (previously serialized)
PagingState object,
or when a paging state does not match the statement being executed. |
class |
ProtocolError
Indicates that the contacted host reported a protocol error.
|
class |
QueryConsistencyException
A failure to reach the required consistency level during the execution of a query.
|
class |
QueryExecutionException
Exception related to the execution of a query.
|
class |
QueryValidationException
An exception indicating that a query cannot be executed because it is
syntactically incorrect, invalid, unauthorized or any other reason.
|
class |
ReadFailureException
A non-timeout error during a read query.
|
class |
ReadTimeoutException
A Cassandra timeout during a read query.
|
class |
ServerError
Indicates that the contacted host reported an internal error.
|
class |
SyntaxError
Indicates a syntax error in a query.
|
class |
TraceRetrievalException
Exception thrown if a query trace cannot be retrieved.
|
class |
TransportException
A connection exception that has to do with the transport itself, i.e.
|
class |
TruncateException
Error during a truncation operation.
|
class |
UnauthorizedException
Indicates that a query cannot be performed due to the authorization
restrictions of the logged user.
|
class |
UnavailableException
Exception thrown when the coordinator knows there is not enough replicas
alive to perform a query with the requested consistency level.
|
class |
UnpreparedException
Indicates that the contacted host replied with an UNPREPARED error code.
|
class |
UnresolvedUserTypeException
Thrown when a user type cannot be resolved.
|
class |
UnsupportedFeatureException
Exception thrown when a feature is not supported by the native protocol
currently in use.
|
class |
UnsupportedProtocolVersionException
Indicates that we've attempted to connect to a Cassandra node with a protocol version
that it cannot handle (e.g., connecting to a C* 1.2 node with protocol version 2).
|
class |
WriteFailureException
A non-timeout error during a write query.
|
class |
WriteTimeoutException
A Cassandra timeout during a write query.
|
Modifier and Type | Method and Description |
---|---|
DriverException |
InvalidQueryException.copy() |
DriverException |
FunctionExecutionException.copy() |
DriverException |
DriverException.copy()
Copy the exception.
|
DriverException |
AuthenticationException.copy() |
DriverException |
AlreadyExistsException.copy() |
Modifier and Type | Method and Description |
---|---|
RetryPolicy.RetryDecision |
RetryPolicy.onRequestError(Statement statement,
ConsistencyLevel cl,
DriverException e,
int nbRetry)
Defines whether to retry and at which consistency level on an
unexpected error.
|
RetryPolicy.RetryDecision |
LoggingRetryPolicy.onRequestError(Statement statement,
ConsistencyLevel cl,
DriverException e,
int nbRetry) |
RetryPolicy.RetryDecision |
IdempotenceAwareRetryPolicy.onRequestError(Statement statement,
ConsistencyLevel cl,
DriverException e,
int nbRetry)
Deprecated.
|
RetryPolicy.RetryDecision |
FallthroughRetryPolicy.onRequestError(Statement statement,
ConsistencyLevel cl,
DriverException e,
int nbRetry)
Defines whether to retry and at which consistency level on an
unexpected error.
|
RetryPolicy.RetryDecision |
DowngradingConsistencyRetryPolicy.onRequestError(Statement statement,
ConsistencyLevel cl,
DriverException e,
int nbRetry)
Defines whether to retry and at which consistency level on an
unexpected error.
|
RetryPolicy.RetryDecision |
DefaultRetryPolicy.onRequestError(Statement statement,
ConsistencyLevel cl,
DriverException e,
int nbRetry)
Defines whether to retry and at which consistency level on an
unexpected error.
|
Copyright © 2012–2017. All rights reserved.