Package com.datastax.driver.core.exceptions
Exceptions thrown by the ScyllaDB Java driver.
-
Interface Summary Interface Description CoordinatorException An interface for exceptions that are able to report the address of the coordinator host that was contacted. -
Exception Summary Exception Description AlreadyExistsException Exception thrown when a query attempts to create a keyspace or table that already exists.AuthenticationException Indicates an error during the authentication phase while connecting to a node.BootstrappingException Indicates that the contacted host was bootstrapping when it received a read query.BusyConnectionException Indicates that a connection has run out of stream IDs.BusyPoolException Indicates that a connection pool has run out of available connections.CASWriteUnknownException CDCWriteException An error occurred when trying to write a CDC mutation to the commitlog *CodecNotFoundException Thrown when a suitableTypeCodeccannot be found byCodecRegistryinstances.ConnectionException Indicates that a connection to a host has encountered a problem and that it should be closed.CrcMismatchException Thrown when the checksums in a server response don't match (protocol v5 or above).DriverException Top level class for exceptions thrown by the driver.DriverInternalError An unexpected error happened internally.FrameTooLongException Indicates that the response frame for a request exceededFrame.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.FunctionExecutionException Error during the execution of a function.InvalidConfigurationInQueryException A specific invalid query exception that indicates that the query is invalid because of some configuration problem.InvalidQueryException Indicates a syntactically correct but invalid query.InvalidTypeException Thrown when aTypeCodecis 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.NoHostAvailableException Exception thrown when a query cannot be performed because no host is available.OperationTimedOutException Thrown on a client-side timeout, i.e. when the client didn't hear back from the server withinSocketOptions.getReadTimeoutMillis().OverloadedException Indicates that the contacted host reported itself being overloaded.PagingStateException Indicates an error while deserializing a (previously serialized)PagingStateobject, or when a paging state does not match the statement being executed.ProtocolError Indicates that the contacted host reported a protocol error.QueryConsistencyException A failure to reach the required consistency level during the execution of a query.QueryExecutionException Exception related to the execution of a query.QueryValidationException An exception indicating that a query cannot be executed because it is syntactically incorrect, invalid, unauthorized or any other reason.ReadFailureException A non-timeout error during a read query.ReadTimeoutException A Cassandra timeout during a read query.ServerError Indicates that the contacted host reported an internal error.SyntaxError Indicates a syntax error in a query.TraceRetrievalException Exception thrown if a query trace cannot be retrieved.TransportException A connection exception that has to do with the transport itself, i.e. that suggests the node is down.TruncateException Error during a truncation operation.UnauthorizedException Indicates that a query cannot be performed due to the authorization restrictions of the logged user.UnavailableException Exception thrown when the coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.UnpreparedException Indicates that the contacted host replied with an UNPREPARED error code.UnresolvedUserTypeException Thrown when a user type cannot be resolved.UnsupportedFeatureException Exception thrown when a feature is not supported by the native protocol currently in use.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).WriteFailureException A non-timeout error during a write query.WriteTimeoutException A Cassandra timeout during a write query.