Error packet (Cassandra)
This packet is sent by the server to tell the client that an error has occurred.
Properties
errorCode (int): the error code. Consult the Cassandra documentation for details on the meaning of these codes.
errorMessage (string): the error message
errorBody (object): an object whose exact value depends on the value of errorCode (see below)
Methods
This packet type has no methods aside from the common ones.
Error bodies
Any error codes that do not have a special body listed here have no special body.
A property X can be accessed by invoking getX(), and changed using setX(value).
ErrorBody1000
consistencyLevel (int): the consistency level of the query that triggered the exception
required (int): the number of nodes that should be alive to respect the consistency level
alive (int): the number of replicas that were known to be alive when the request was processed
ErrorBody1100
consistencyLevel (int): the consistency level of the query that triggered the exception
received (int): the number of nodes that have acknowledged the request
blockFor (int): the number of replicas whose acknowledgement is required to achieve the requested consistency level
writeType (string): the type of the write that timed out
contentions (int): the number of contentions that occurred during the CAS operation
ErrorBody1200
consistencyLevel (int): the consistency level of the query that triggered the exception
received (int): the number of nodes that have acknowledged the request
blockFor (int): the number of replicas whose acknowledgement is required to achieve the requested consistency level
dataPresent (byte): if 0, the replica that was asked for data has not responded
ErrorBody1300
consistencyLevel (int): the consistency level of the query that triggered the exception
received (int): the number of nodes that have acknowledged the request
blockFor (int): the number of replicas whose acknowledgement is required to achieve the requested consistency level
addresses (list<InetAddress>): the endpoints that caused the error. The corresponding error code will be at the same index in failureCodes.
failureCodes (list<int>): the failure codes, in the same order as the endpoints
dataPresent (byte): if 0, the replica that was asked for data has not responded
ErrorBody1400
keyspace (string): the keyspace of the function that caused the error
function (string): the name of the function that caused the error
argumentTypes (list<string>): the types of the arguments of the function that caused the error
ErrorBody1500
consistencyLevel (int): the consistency level of the query that triggered the exception
received (int): the number of nodes that have acknowledged the request
blockFor (int): the number of replicas whose acknowledgement is required to achieve the requested consistency level
addresses (list<InetAddress>): the endpoints that caused the error. The corresponding error code will be at the same index in failureCodes.
failureCodes (list<int>): the failure codes, in the same order as the endpoints
writeType (string): the type of the write that failed
ErrorBody1700
consistencyLevel (int): the consistency level of the query that triggered the exception
received (int): the number of nodes that have acknowledged the request
blockFor (int): the number of replicas whose acknowledgement is required to achieve the requested consistency level
ErrorBody2400
keyspace (string): the keyspace of the table that already exists
table (string): the name of the table that already exists
ErrorBody2500
statementId (byte[]): the unknown statement ID