#include <couchbase/error.hxx>
◆ error() [1/4]
◆ error() [2/4]
| error |
( |
std::error_code | ec, |
|
|
std::string | message = {}, |
|
|
error_context | ctx = {} ) |
◆ error() [3/4]
| error |
( |
std::error_code | ec, |
|
|
std::string | message, |
|
|
error_context | ctx, |
|
|
error | cause ) |
◆ error() [4/4]
◆ cause()
| auto cause |
( |
| ) |
const -> std::optional< error > |
|
nodiscard |
◆ ctx()
◆ ec()
| auto ec |
( |
| ) |
const -> std::error_code |
|
nodiscard |
◆ message()
| auto message |
( |
| ) |
const -> const std::string & |
|
nodiscard |
◆ node_id()
Returns the identity of the cluster node where the error occurred.
The returned node_id is default-constructed (falsy) when the node could not be determined (e.g. for non-KV errors).
- Returns
- identity of the node that returned the error
- Since
- 1.3.2
- Uncommitted
- Might be changed in the future, and eventually promoted to committed
◆ operator bool()
◆ operator==()
| auto operator== |
( |
const error & | other | ) |
const -> bool |
The documentation for this class was generated from the following file: