struct CassErrorResult
A error result of a request
Functions
void
cass_error_result_free
( error_result, 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_UNAVAILABLE
cass_int32_t
cass_error_result_responses_received
( error_result )Gets the acutal number of recieved responses, recieved acknowlegements or alive nodes for following error result types, respectively:
- CASS_ERROR_SERVER_READ_TIMEOUT
- CASS_ERROR_SERVER_WRITE_TIMEOUT
- CASS_ERROR_SERVER_UNAVAILABLE
cass_int32_t
cass_error_result_responses_required
( error_result )Gets required responses, required acknowlegements 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_UNAVAILABLE
cass_bool_t
cass_error_result_data_present
( error_result )Gets if the data was actually present in the responses from the replicas when the read timed out (CASS_ERROR_SERVER_READ_TIMEOUT).
CassWriteType
cass_error_result_write_type
( error_result )Gets the write type of a request when the write timed out (CASS_ERROR_SERVER_WRITE_TIMEOUT).