20#include <system_error>
24#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
28common_category() noexcept -> const std::error_category&;
31key_value_category() noexcept -> const std::error_category&;
34query_category() noexcept -> const std::error_category&;
37analytics_category() noexcept -> const std::error_category&;
40search_category() noexcept -> const std::error_category&;
43view_category() noexcept -> const std::error_category&;
46management_category() noexcept -> const std::error_category&;
49field_level_encryption_category() noexcept -> const std::error_category&;
52network_category() noexcept -> const std::error_category&;
55streaming_json_lexer_category() noexcept -> const std::error_category&;
58transaction_category() noexcept -> const std::error_category&;
61transaction_op_category() noexcept -> const std::error_category&;
1185#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
1187make_error_code(common e)
noexcept -> std::error_code
1189 return {
static_cast<int>(e), core::impl::common_category() };
1193make_error_code(key_value e) -> std::error_code
1195 return {
static_cast<int>(e), core::impl::key_value_category() };
1199make_error_code(query e) -> std::error_code
1201 return {
static_cast<int>(e), core::impl::query_category() };
1205make_error_code(search e) -> std::error_code
1207 return {
static_cast<int>(e), core::impl::search_category() };
1211make_error_code(view e) -> std::error_code
1213 return {
static_cast<int>(e), core::impl::view_category() };
1217make_error_code(analytics e) -> std::error_code
1219 return {
static_cast<int>(e), core::impl::analytics_category() };
1223make_error_code(management e) -> std::error_code
1225 return {
static_cast<int>(e), core::impl::management_category() };
1229make_error_code(network e) -> std::error_code
1231 return {
static_cast<int>(e), core::impl::network_category() };
1235make_error_code(field_level_encryption e) -> std::error_code
1237 return {
static_cast<int>(e), core::impl::field_level_encryption_category() };
1241make_error_code(streaming_json_lexer e) -> std::error_code
1243 return {
static_cast<int>(e), core::impl::streaming_json_lexer_category() };
1247make_error_code(transaction e) -> std::error_code
1249 return {
static_cast<int>(e), core::impl::transaction_category() };
1253make_error_code(transaction_op e) -> std::error_code
1255 return {
static_cast<int>(e), core::impl::transaction_op_category() };
1262#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
1264struct std::is_error_code_enum<couchbase::errc::common> : std::true_type {
1268struct std::is_error_code_enum<couchbase::errc::key_value> : std::true_type {
1272struct std::is_error_code_enum<couchbase::errc::query> : std::true_type {
1276struct std::is_error_code_enum<couchbase::errc::analytics> : std::true_type {
1280struct std::is_error_code_enum<couchbase::errc::search> : std::true_type {
1284struct std::is_error_code_enum<couchbase::errc::view> : std::true_type {
1288struct std::is_error_code_enum<couchbase::errc::management> : std::true_type {
1292struct std::is_error_code_enum<couchbase::errc::field_level_encryption> : std::true_type {
1296struct std::is_error_code_enum<couchbase::errc::network> : std::true_type {
1300struct std::is_error_code_enum<couchbase::errc::streaming_json_lexer> : std::true_type {
1304struct std::is_error_code_enum<couchbase::errc::transaction> : std::true_type {
1308struct std::is_error_code_enum<couchbase::errc::transaction_op> : std::true_type {
Definition error_codes.hxx:67
transaction_op
Errors related to a failed transaction operation.
Definition error_codes.hxx:1152
@ active_transaction_record_not_found
Definition error_codes.hxx:1160
@ document_unretrievable
Definition error_codes.hxx:1177
@ active_transaction_record_entry_not_found
Definition error_codes.hxx:1158
@ concurrent_operations_detected_on_same_document
Definition error_codes.hxx:1172
@ transaction_already_committed
Definition error_codes.hxx:1176
@ transaction_op_failed
Definition error_codes.hxx:1182
@ active_transaction_record_full
Definition error_codes.hxx:1159
@ forward_compatibility_failure
Definition error_codes.hxx:1167
@ commit_not_permitted
Definition error_codes.hxx:1173
@ transaction_aborted_externally
Definition error_codes.hxx:1165
@ transaction_already_aborted
Definition error_codes.hxx:1175
@ document_already_in_transaction
Definition error_codes.hxx:1161
@ rollback_not_permitted
Definition error_codes.hxx:1174
@ previous_operation_failed
Definition error_codes.hxx:1166
@ illegal_state
Definition error_codes.hxx:1169
key_value
Errors for related to Key/Value service (kv_engine).
Definition error_codes.hxx:366
@ path_exists
A sub-document operation which relies on a path not existing encountered a path which exists.
Definition error_codes.hxx:567
@ value_too_large
The value that was sent was too large to store (typically > 20MB).
Definition error_codes.hxx:406
@ xattr_unknown_virtual_attribute
A sub-document operation attempts to access an unknown virtual attribute.
Definition error_codes.hxx:594
@ document_not_locked
The document is already locked - generally returned when an unlocking operation is being performed.
Definition error_codes.hxx:624
@ document_not_found_on_replica
The document was not found on the replica that get_replica() read from.
Definition error_codes.hxx:658
@ replica_index_currently_unavailable
The replica exists for this bucket, but cannot be read now.
Definition error_codes.hxx:680
@ value_too_deep
The value provided, if inserted into the document, would cause the document to become too deep for th...
Definition error_codes.hxx:521
@ xattr_unknown_macro
A macro was used which the server did not understand.
Definition error_codes.hxx:576
@ durable_write_re_commit_in_progress
The server is currently working to synchronize all replicas for previously performed durable operatio...
Definition error_codes.hxx:464
@ xattr_invalid_key_combo
A sub-document operation attempts to access multiple XATTRs in one operation.
Definition error_codes.hxx:585
@ path_too_deep
The document contains too many levels to parse.
Definition error_codes.hxx:511
@ document_not_found
Indicates an operation failed because the key does not exist.
Definition error_codes.hxx:374
@ path_mismatch
The path provided for a sub-document operation did not match the actual structure of the document.
Definition error_codes.hxx:483
@ cannot_revive_living_document
Only deleted document could be revived.
Definition error_codes.hxx:633
@ xattr_no_access
The user does not have permission to access the attribute.
Definition error_codes.hxx:614
@ durable_write_in_progress
A durable write is attempted against a key which already has a pending durable write.
Definition error_codes.hxx:454
@ document_locked
Returned when the server reports a temporary failure that is very likely to be lock-related (like an ...
Definition error_codes.hxx:397
@ durability_ambiguous
A sync-write has not completed in the specified time and has an ambiguous result – it may have succee...
Definition error_codes.hxx:445
@ path_not_found
The path provided for a sub-document operation was not found.
Definition error_codes.hxx:473
@ document_not_json
A sub-document operation is performed on a non-JSON document.
Definition error_codes.hxx:540
@ xattr_cannot_modify_virtual_attribute
A sub-document operation attempts to modify a virtual attribute.
Definition error_codes.hxx:603
@ number_too_big
The existing number is outside the valid range for arithmetic operations.
Definition error_codes.hxx:549
@ replica_index_out_of_bounds
The bucket has no replica at the requested index: the index is at or beyond its configured replica co...
Definition error_codes.hxx:669
@ document_exists
An operation which relies on the document not existing fails because the document existed.
Definition error_codes.hxx:415
@ path_invalid
The path provided for a sub-document operation was not syntactically correct.
Definition error_codes.hxx:492
@ durability_impossible
The specified durability requirements are not currently possible (for example, there are an insuffici...
Definition error_codes.hxx:434
@ mutation_token_outdated
The provided mutation token is outdated compared to the current state of the server.
Definition error_codes.hxx:642
@ document_irretrievable
In get_any_replica, the get_all_replicas returns an empty stream because all the individual errors ar...
Definition error_codes.hxx:384
@ value_invalid
The value provided for a sub-document operation would invalidate the JSON structure of the document i...
Definition error_codes.hxx:531
@ delta_invalid
The delta value specified for an operation is too large.
Definition error_codes.hxx:558
@ durability_level_not_available
The specified durability level is invalid.
Definition error_codes.hxx:424
@ path_too_big
The path provided for a sub-document operation is too long, or contains too many independent componen...
Definition error_codes.hxx:502
@ range_scan_completed
Definition error_codes.hxx:648
field_level_encryption
Field-Level Encryption Error Definitions.
Definition error_codes.hxx:925
@ invalid_crypto_key
Raised by an encrypter or decrypter when the key does not meet expectations (for example,...
Definition error_codes.hxx:969
@ encrypter_not_found
Raised when a message cannot be encrypted because there is no encrypter registered under the requeste...
Definition error_codes.hxx:987
@ generic_cryptography_failure
Generic cryptography failure.
Definition error_codes.hxx:932
@ encryption_failure
Raised by CryptoManager encrypt when encryption fails for any reason.
Definition error_codes.hxx:942
@ crypto_key_not_found
Raised when a crypto operation fails because a required key is missing.
Definition error_codes.hxx:960
@ decryption_failure
Raised by CryptoManager.decrypt() when decryption fails for any reason.
Definition error_codes.hxx:952
@ decrypter_not_found
Raised when a message cannot be decrypted because there is no decrypter registered for the algorithm.
Definition error_codes.hxx:978
@ invalid_ciphertext
Raised when decryption fails due to malformed input, integrity check failure, etc.
Definition error_codes.hxx:995
search
Errors related to Search service (CBFT).
Definition error_codes.hxx:814
@ consistency_mismatch
Consistency constraints cannot be accepted by the server.
Definition error_codes.hxx:829
@ index_not_ready
The index referenced in the query is not ready yet.
Definition error_codes.hxx:821
view
Errors related to Views service (CAPI).
Definition error_codes.hxx:838
@ view_not_found
View does not exist on the server.
Definition error_codes.hxx:847
@ design_document_not_found
Design document does not exist on the server.
Definition error_codes.hxx:859
network
Errors related to networking IO.
Definition error_codes.hxx:1004
@ request_cancelled
Definition error_codes.hxx:1087
@ end_of_stream
Definition error_codes.hxx:1057
@ need_more_data
Definition error_codes.hxx:1063
@ operation_queue_closed
Definition error_codes.hxx:1069
@ bucket_closed
Definition error_codes.hxx:1093
@ request_already_queued
Definition error_codes.hxx:1081
@ resolve_failure
Unable to resolve node address.
Definition error_codes.hxx:1011
@ operation_queue_full
Definition error_codes.hxx:1075
@ handshake_failure
Failed to complete protocol handshake.
Definition error_codes.hxx:1027
@ protocol_error
Unexpected protocol state or input.
Definition error_codes.hxx:1035
@ no_endpoints_left
No hosts left to connect.
Definition error_codes.hxx:1019
@ configuration_not_available
Configuration is not available for some reason.
Definition error_codes.hxx:1043
@ cluster_closed
The cluster object has been explicitly closed, no requests allowed.
Definition error_codes.hxx:1051
query
Errors related to Query service (N1QL).
Definition error_codes.hxx:689
@ planning_failure
Indicates an operation failed because there has been an issue with the query planner.
Definition error_codes.hxx:697
@ index_failure
Indicates an operation failed because there has been an issue with the query planner or similar.
Definition error_codes.hxx:707
@ dml_failure
This exception is raised when the server fails to execute a DML query.
Definition error_codes.hxx:725
@ prepared_statement_failure
Indicates an operation failed because there has been an issue with query prepared statements.
Definition error_codes.hxx:716
transaction
Errors related to a failed transaction.
Definition error_codes.hxx:1139
@ ambiguous
Definition error_codes.hxx:1143
@ failed
Definition error_codes.hxx:1140
@ failed_post_commit
Definition error_codes.hxx:1142
@ expired
Definition error_codes.hxx:1141
management
Errors related to management service (ns_server).
Definition error_codes.hxx:868
@ group_not_found
Raised from the user management API.
Definition error_codes.hxx:879
@ eventing_function_compilation_failure
Occurs when the compilation of the function code failed name is "ERR_HANDLER_COMPILATION".
Definition error_codes.hxx:900
@ eventing_function_identical_keyspace
Occurs when source and metadata keyspaces are the same.
Definition error_codes.hxx:904
@ bucket_not_flushable
Raised from the bucket management API.
Definition error_codes.hxx:888
@ eventing_function_paused
Occurs when a function is paused but the action does not expect it to name is "ERR_APP_PAUSED".
Definition error_codes.hxx:916
@ eventing_function_not_bootstrapped
Occurs when a function is deployed but not “fully” bootstrapped name is "ERR_APP_NOT_BOOTSTRAPPED".
Definition error_codes.hxx:908
@ eventing_function_deployed
Occurs when a function is deployed but the action does not expect it to name is "ERR_APP_NOT_UNDEPLOY...
Definition error_codes.hxx:912
@ eventing_function_not_deployed
Occurs if the function is not deployed, but the action expects it to name is "ERR_APP_NOT_DEPLOYED".
Definition error_codes.hxx:896
@ user_not_found
Raised from the user management API.
Definition error_codes.hxx:876
@ collection_exists
Raised from the collection management API.
Definition error_codes.hxx:870
@ eventing_function_not_found
Occurs if the function is not found name is "ERR_APP_NOT_FOUND_TS".
Definition error_codes.hxx:892
@ scope_exists
Raised from the collection management API.
Definition error_codes.hxx:873
@ user_exists
Raised from the user management API.
Definition error_codes.hxx:885
@ bucket_exists
Raised from the bucket management API.
Definition error_codes.hxx:882
analytics
Errors related to Analytics service (CBAS).
Definition error_codes.hxx:734
@ link_not_found
The link referenced in the query is not found on the server.
Definition error_codes.hxx:796
@ job_queue_full
Indicates the analytics server job queue is full.
Definition error_codes.hxx:751
@ dataset_not_found
The dataset referenced in the query is not found on the server.
Definition error_codes.hxx:760
@ link_exists
The link referenced in the query is found on the server, when it should not be.
Definition error_codes.hxx:805
@ dataverse_not_found
The dataverse referenced in the query is not found on the server.
Definition error_codes.hxx:769
@ dataverse_exists
The dataverse referenced in the query is found on the server, when it should not be.
Definition error_codes.hxx:787
@ dataset_exists
The dataset referenced in the query is found on the server, when it should not be.
Definition error_codes.hxx:778
@ compilation_failure
The query failed to compile.
Definition error_codes.hxx:742
streaming_json_lexer
Errors related to streaming JSON parser.
Definition error_codes.hxx:1102
@ json_pointer_duplicated_slash
Definition error_codes.hxx:1124
@ json_pointer_bad_path
Definition error_codes.hxx:1123
@ missing_token
Definition error_codes.hxx:1107
@ invalid_codepoint
Definition error_codes.hxx:1127
@ special_incomplete
Definition error_codes.hxx:1105
@ bracket_mismatch
Definition error_codes.hxx:1114
@ key_outside_object
Definition error_codes.hxx:1110
@ garbage_trailing
Definition error_codes.hxx:1103
@ stray_token
Definition error_codes.hxx:1106
@ value_expected
Definition error_codes.hxx:1121
@ escape_invalid
Definition error_codes.hxx:1118
@ percent_bad_hex
Definition error_codes.hxx:1122
@ found_null_byte
Definition error_codes.hxx:1112
@ invalid_number
Definition error_codes.hxx:1120
@ cannot_insert
Definition error_codes.hxx:1108
@ not_enough_memory
Definition error_codes.hxx:1126
@ trailing_comma
Definition error_codes.hxx:1119
@ root_is_not_an_object
Definition error_codes.hxx:1129
@ unicode_escape_is_too_short
Definition error_codes.hxx:1117
@ escape_outside_string
Definition error_codes.hxx:1109
@ root_does_not_match_json_pointer
Definition error_codes.hxx:1130
@ special_expected
Definition error_codes.hxx:1104
@ levels_exceeded
Definition error_codes.hxx:1113
@ string_outside_container
Definition error_codes.hxx:1111
@ json_pointer_missing_root
Definition error_codes.hxx:1125
@ weird_whitespace
Definition error_codes.hxx:1116
@ object_key_expected
Definition error_codes.hxx:1115
common
Common errors for all services and modules.
Definition error_codes.hxx:74
@ bucket_not_found
A request is made but the current bucket is not found.
Definition error_codes.hxx:178
@ cas_mismatch
Indicates an optimistic locking failure.
Definition error_codes.hxx:170
@ service_not_available
It can be determined from the config unambiguously that a given service is not available.
Definition error_codes.hxx:105
@ encoding_failure
Returned when encoding of a user object failed while trying to write it to the cluster.
Definition error_codes.hxx:267
@ internal_server_failure
Indicates an operation failed because there has been an internal error in the server.
Definition error_codes.hxx:117
@ temporary_failure
Returned when the server reports a temporary failure.
Definition error_codes.hxx:143
@ decoding_failure
Returned when decoding of the data into the user object failed.
Definition error_codes.hxx:275
@ unambiguous_timeout
A timeout occurs and we are confident that the operation could not have succeeded.
Definition error_codes.hxx:216
@ rate_limited
This error is raised if the operation failed due to hitting a rate-limit on the server side.
Definition error_codes.hxx:323
@ ambiguous_timeout
A timeout occurs and we aren't sure if the underlying operation has completed.
Definition error_codes.hxx:206
@ collection_not_found
A request is made but the current collection (including scope) is not found.
Definition error_codes.hxx:186
@ scope_not_found
A management API attempts to target a scope which does not exist.
Definition error_codes.hxx:232
@ index_not_found
The index that was referenced by the operation does not exist on the server.
Definition error_codes.hxx:243
@ feature_not_available
A feature which is not available was used.
Definition error_codes.hxx:224
@ index_exists
The index that was referenced by the operation exist on the server when it expected not to.
Definition error_codes.hxx:259
@ unsupported_operation
The server indicates that the operation is not supported.
Definition error_codes.hxx:195
@ authentication_failure
Indicates authentication problems.
Definition error_codes.hxx:130
@ parsing_failure
Indicates an operation failed because parsing of the input returned with an error.
Definition error_codes.hxx:153
@ invalid_argument
It is unambiguously determined that the error was caused because of invalid arguments from the user.
Definition error_codes.hxx:94
@ quota_limited
This error is raised if the operation failed due to hitting a quota-limit on the server side.
Definition error_codes.hxx:357
@ request_canceled
A request is cancelled and cannot be resolved in a non-ambiguous way.
Definition error_codes.hxx:83
Represents a single item from the result of scan().
Definition allow_querying_search_index_options.hxx:28