quasardb C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Macros | Typedefs | Enumerations | Functions
error.h File Reference
#include "_attr.h"

Macros

#define QDB_ERROR_ORIGIN(x)   ((x) & (int)0xF0000000)
 Extracts the origin out of a qdb_error_t.
 
#define QDB_ERROR_SEVERITY(x)   ((x) & (int)0x0F000000)
 Extracts the severity out of a qdb_error_t.
 
#define QDB_SUCCESS(x)   (((x) == qdb_e_ok) || (QDB_ERROR_SEVERITY(x) == qdb_e_severity_info))
 True if and only if the qdb_error_t indicates a success.
 
#define QDB_FAILURE(x)   (!QDB_SUCCESS(x))
 True if and only if the qdb_error_t indicates a failure.
 

Typedefs

typedef enum qdb_error_origin_t qdb_error_origin_t
 The error origin.
 
typedef enum qdb_error_severity_t qdb_error_severity_t
 An error severity level.
 
typedef enum qdb_error_t qdb_error_t
 An error code indicating success or failure.
 
typedef qdb_error_t qdb_status_t
 An alias for qdb_error_t.
 

Enumerations

enum  qdb_error_origin_t
 The error origin.
 
enum  qdb_error_severity_t
 An error severity level.
 
enum  qdb_error_t {
  qdb_e_ok = 0, qdb_e_uninitialized = QDB_EC(qdb_e_origin_input , qdb_e_severity_unrecoverable, 0xFFFF), qdb_e_alias_not_found = QDB_EC(qdb_e_origin_operation , qdb_e_severity_warning , 0x0008), qdb_e_alias_already_exists = QDB_EC(qdb_e_origin_operation , qdb_e_severity_warning , 0x0009),
  qdb_e_out_of_bounds = QDB_EC(qdb_e_origin_input , qdb_e_severity_warning , 0x0019), qdb_e_skipped = QDB_EC(qdb_e_origin_operation , qdb_e_severity_warning , 0x0021), qdb_e_incompatible_type = QDB_EC(qdb_e_origin_operation , qdb_e_severity_warning , 0x0022), qdb_e_container_empty = QDB_EC(qdb_e_origin_operation , qdb_e_severity_warning , 0x0023),
  qdb_e_container_full = QDB_EC(qdb_e_origin_operation , qdb_e_severity_warning , 0x0024), qdb_e_element_not_found = QDB_EC(qdb_e_origin_operation , qdb_e_severity_info , 0x0025), qdb_e_element_already_exists = QDB_EC(qdb_e_origin_operation , qdb_e_severity_info , 0x0026), qdb_e_overflow = QDB_EC(qdb_e_origin_operation , qdb_e_severity_warning , 0x0027),
  qdb_e_underflow = QDB_EC(qdb_e_origin_operation , qdb_e_severity_warning , 0x0028), qdb_e_tag_already_set = QDB_EC(qdb_e_origin_operation , qdb_e_severity_info , 0x0029), qdb_e_tag_not_set = QDB_EC(qdb_e_origin_operation , qdb_e_severity_info , 0x002A), qdb_e_timeout = QDB_EC(qdb_e_origin_connection , qdb_e_severity_error , 0x000A),
  qdb_e_connection_refused = QDB_EC(qdb_e_origin_connection , qdb_e_severity_unrecoverable, 0x000E), qdb_e_connection_reset = QDB_EC(qdb_e_origin_connection , qdb_e_severity_error , 0x000F), qdb_e_unstable_cluster = QDB_EC(qdb_e_origin_connection , qdb_e_severity_error , 0x0012), qdb_e_try_again = QDB_EC(qdb_e_origin_connection , qdb_e_severity_error , 0x0017),
  qdb_e_conflict = QDB_EC(qdb_e_origin_operation , qdb_e_severity_error , 0x001A), qdb_e_not_connected = QDB_EC(qdb_e_origin_connection , qdb_e_severity_error , 0x001B), qdb_e_resource_locked = QDB_EC(qdb_e_origin_operation , qdb_e_severity_error , 0x002D), qdb_e_system_remote = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_unrecoverable, 0x0001),
  qdb_e_system_local = QDB_EC(qdb_e_origin_system_local , qdb_e_severity_unrecoverable, 0x0001), qdb_e_internal_remote = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_unrecoverable, 0x0002), qdb_e_internal_local = QDB_EC(qdb_e_origin_system_local , qdb_e_severity_unrecoverable, 0x0002), qdb_e_no_memory_remote = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_unrecoverable, 0x0003),
  qdb_e_no_memory_local = QDB_EC(qdb_e_origin_system_local , qdb_e_severity_unrecoverable, 0x0003), qdb_e_invalid_protocol = QDB_EC(qdb_e_origin_protocol , qdb_e_severity_unrecoverable, 0x0004), qdb_e_host_not_found = QDB_EC(qdb_e_origin_connection , qdb_e_severity_error , 0x0005), qdb_e_buffer_too_small = QDB_EC(qdb_e_origin_input , qdb_e_severity_warning , 0x000B),
  qdb_e_not_implemented = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_unrecoverable, 0x0011), qdb_e_invalid_version = QDB_EC(qdb_e_origin_protocol , qdb_e_severity_unrecoverable, 0x0016), qdb_e_invalid_argument = QDB_EC(qdb_e_origin_input , qdb_e_severity_error , 0x0018), qdb_e_invalid_handle = QDB_EC(qdb_e_origin_input , qdb_e_severity_error , 0x001C),
  qdb_e_reserved_alias = QDB_EC(qdb_e_origin_input , qdb_e_severity_error , 0x001D), qdb_e_unmatched_content = QDB_EC(qdb_e_origin_operation , qdb_e_severity_info , 0x001E), qdb_e_invalid_iterator = QDB_EC(qdb_e_origin_input , qdb_e_severity_error , 0x001F), qdb_e_entry_too_large = QDB_EC(qdb_e_origin_input , qdb_e_severity_error , 0x002B),
  qdb_e_transaction_partial_failure = QDB_EC(qdb_e_origin_operation , qdb_e_severity_error , 0x002C), qdb_e_operation_disabled = QDB_EC(qdb_e_origin_operation , qdb_e_severity_error , 0x002E), qdb_e_operation_not_permitted = QDB_EC(qdb_e_origin_operation , qdb_e_severity_error , 0x002F), qdb_e_iterator_end = QDB_EC(qdb_e_origin_operation , qdb_e_severity_info , 0x0030),
  qdb_e_invalid_reply = QDB_EC(qdb_e_origin_protocol , qdb_e_severity_unrecoverable, 0x0031), qdb_e_ok_created = QDB_EC(qdb_e_origin_operation , qdb_e_severity_info , 0x0032), qdb_e_no_space_left = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_unrecoverable, 0x0033), qdb_e_quota_exceeded = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_unrecoverable, 0x0034),
  qdb_e_alias_too_long = QDB_EC(qdb_e_origin_input , qdb_e_severity_error , 0x0035), qdb_e_clock_skew = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_error , 0x0036), qdb_e_access_denied = QDB_EC(qdb_e_origin_operation , qdb_e_severity_error , 0x0037), qdb_e_login_failed = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_error , 0x0038),
  qdb_e_column_not_found = QDB_EC(qdb_e_origin_operation , qdb_e_severity_warning , 0x0039), qdb_e_query_too_complex = QDB_EC(qdb_e_origin_operation , qdb_e_severity_error , 0x0040), qdb_e_invalid_crypto_key = QDB_EC(qdb_e_origin_input , qdb_e_severity_error , 0x0041), qdb_e_invalid_query = QDB_EC(qdb_e_origin_input , qdb_e_severity_error , 0x0042),
  qdb_e_invalid_regex = QDB_EC(qdb_e_origin_input , qdb_e_severity_error , 0x0043), qdb_e_unknown_user = QDB_EC(qdb_e_origin_input , qdb_e_severity_error , 0x0044), qdb_e_interrupted = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_error , 0x0045), qdb_e_network_inbuf_too_small = QDB_EC(qdb_e_origin_system_local , qdb_e_severity_error , 0x0046),
  qdb_e_network_error = QDB_EC(qdb_e_origin_connection , qdb_e_severity_error , 0x0047), qdb_e_data_corruption = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_unrecoverable, 0x0048), qdb_e_partial_failure = QDB_EC(qdb_e_origin_operation , qdb_e_severity_error , 0x0049), qdb_e_async_pipe_full = QDB_EC(qdb_e_origin_system_remote, qdb_e_severity_error , 0x004A)
}
 An error code indicating success or failure. More...
 

Functions

QDB_API_LINKAGE const char * qdb_error (qdb_error_t error)
 Translates an error code into an English error message. More...