struct CassErrorResult
A error result of a request
Functions
void
cass_error_result_free
( error_result )Frees an error result instance.
CassError
cass_error_result_code
( error_result )Gets error code for the error result. This error code will always have an server error source.
CassConsistency
cass_error_result_consistency
( error_result )Gets consistency that triggered the error result of the following types:
- CASS_ERROR_SERVER_READ_TIMEOUT
- CASS_ERROR_SERVER_WRITE_TIMEOUT
- CASS_ERROR_SERVER_READ_FAILURE
- CASS_ERROR_SERVER_WRITE_FAILURE
- CASS_ERROR_SERVER_UNAVAILABLE
cass_int32_t
cass_error_result_responses_received
( error_result )Gets the actual number of received responses, received acknowledgments or alive nodes for following error result types, respectively:
- CASS_ERROR_SERVER_READ_TIMEOUT
- CASS_ERROR_SERVER_WRITE_TIMEOUT
- CASS_ERROR_SERVER_READ_FAILURE
- CASS_ERROR_SERVER_WRITE_FAILURE
- CASS_ERROR_SERVER_UNAVAILABLE
cass_int32_t
cass_error_result_responses_required
( error_result )Gets required responses, required acknowledgments or required alive nodes needed to successfully complete the request for following error result types, respectively:
- CASS_ERROR_SERVER_READ_TIMEOUT
- CASS_ERROR_SERVER_WRITE_TIMEOUT
- CASS_ERROR_SERVER_READ_FAILURE
- CASS_ERROR_SERVER_WRITE_FAILURE
- CASS_ERROR_SERVER_UNAVAILABLE
cass_int32_t
cass_error_result_num_failures
( error_result )Gets the number of nodes that experienced failures for the following error types:
- CASS_ERROR_SERVER_READ_FAILURE
- CASS_ERROR_SERVER_WRITE_FAILURE
cass_bool_t
cass_error_result_data_present
( error_result )Determines whether the actual data was present in the responses from the replicas for the following error result types:
- CASS_ERROR_SERVER_READ_TIMEOUT
- CASS_ERROR_SERVER_READ_FAILURE
CassWriteType
cass_error_result_write_type
( error_result )Gets the write type of a request for the following error result types:
- CASS_ERROR_SERVER_WRITE_TIMEOUT
- CASS_ERROR_SERVER_WRITE_FAILURE
CassError
cass_error_result_keyspace
( error_result, keyspace, keyspace_length )Gets the affected keyspace for the following error result types:
- CASS_ERROR_SERVER_ALREADY_EXISTS
- CASS_ERROR_SERVER_FUNCTION_FAILURE
CassError
cass_error_result_table
( error_result, table, table_length )Gets the affected table for the already exists error (CASS_ERROR_SERVER_ALREADY_EXISTS) result type.
CassError
cass_error_result_function
( error_result, function, function_length )Gets the affected function for the function failure error (CASS_ERROR_SERVER_FUNCTION_FAILURE) result type.
Requires Cassandra: 2.2+
size_t
cass_error_num_arg_types
( error_result )Gets the number of argument types for the function failure error (CASS_ERROR_SERVER_FUNCTION_FAILURE) result type.
Requires Cassandra: 2.2+
CassError
cass_error_result_arg_type
( error_result, index, arg_type, arg_type_length )Gets the argument type at the specified index for the function failure error (CASS_ERROR_SERVER_FUNCTION_FAILURE) result type.
Requires Cassandra: 2.2+