Was this page helpful?
A error result of a request
Public Functions
Frees an error result instance.
error_result – [in]
Gets error code for the error result. This error code will always have an server error source.
error_result – [in]
The server error code
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
error_result – [in]
The consistency that triggered the error for a read timeout, write timeout or an unavailable error result. Undefined for other error result types.
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
error_result – [in]
The actual received responses for a read timeout, actual received acknowledgments for a write timeout or actual alive nodes for a unavailable error. Undefined for other error result types.
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
error_result – [in]
The required responses for a read time, required acknowledgments for a write timeout or required alive nodes for an unavailable error result. Undefined for other error result types.
Gets the number of nodes that experienced failures for the following error types:
CASS_ERROR_SERVER_READ_FAILURE
CASS_ERROR_SERVER_WRITE_FAILURE
error_result – [in]
The number of nodes that failed during a read or write request.
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
error_result – [in]
cass_true if the data was present in the received responses when the read timeout occurred. Undefined for other error result types.
Gets the write type of a request for the following error result types:
CASS_ERROR_SERVER_WRITE_TIMEOUT
CASS_ERROR_SERVER_WRITE_FAILURE
error_result – [in]
The type of the write that timed out. Undefined for other error result types.
Gets the affected keyspace for the following error result types:
CASS_ERROR_SERVER_ALREADY_EXISTS
CASS_ERROR_SERVER_FUNCTION_FAILURE
error_result – [in]
keyspace – [out]
keyspace_length – [out]
CASS_OK if successful, otherwise error occurred
Gets the affected table for the already exists error (CASS_ERROR_SERVER_ALREADY_EXISTS) result type.
error_result – [in]
table – [out]
table_length – [out]
CASS_OK if successful, otherwise error occurred
Gets the affected function for the function failure error (CASS_ERROR_SERVER_FUNCTION_FAILURE) result type.
Requires Apache Cassandra: 2.2+
error_result – [in]
function – [out]
function_length – [out]
CASS_OK if successful, otherwise error occurred
Gets the number of argument types for the function failure error (CASS_ERROR_SERVER_FUNCTION_FAILURE) result type.
Requires Apache Cassandra: 2.2+
error_result – [in]
The number of arguments for the affected function.
Gets the argument type at the specified index for the function failure error (CASS_ERROR_SERVER_FUNCTION_FAILURE) result type.
Requires Apache Cassandra: 2.2+
error_result – [in]
index – [in]
arg_type – [out]
arg_type_length – [out]
CASS_OK if successful, otherwise error occurred
Was this page helpful?
On this page
CassErrorResult
CassErrorResult::cass_error_result_free()
CassErrorResult::cass_error_result_code()
CassErrorResult::cass_error_result_consistency()
CassErrorResult::cass_error_result_responses_received()
CassErrorResult::cass_error_result_responses_required()
CassErrorResult::cass_error_result_num_failures()
CassErrorResult::cass_error_result_data_present()
CassErrorResult::cass_error_result_write_type()
CassErrorResult::cass_error_result_keyspace()
CassErrorResult::cass_error_result_table()
CassErrorResult::cass_error_result_function()
CassErrorResult::cass_error_num_arg_types()
CassErrorResult::cass_error_result_arg_type()