Couchbase C++ SDK 1.0.2 (rev. 51f4775)
Loading...
Searching...
No Matches
error Class Reference

#include <couchbase/error.hxx>

Public Member Functions

 error ()=default
 
 error (std::error_code ec, std::string message={}, error_context ctx={})
 
 error (std::error_code ec, std::string message, error_context ctx, error cause)
 
auto ec () const -> std::error_code
 
auto message () const -> const std::string &
 
auto ctx () const -> const error_context &
 
auto cause () const -> std::optional< error >
 
 operator bool () const
 
auto operator== (const error &other) const -> bool
 

Detailed Description

Constructor & Destructor Documentation

◆ error() [1/3]

error ( )
default

◆ error() [2/3]

error ( std::error_code ec,
std::string message = {},
error_context ctx = {} )

◆ error() [3/3]

error ( std::error_code ec,
std::string message,
error_context ctx,
error cause )

Member Function Documentation

◆ cause()

auto cause ( ) const -> std::optional< error >
nodiscard

◆ ctx()

auto ctx ( ) const -> const error_context &
nodiscard

◆ ec()

auto ec ( ) const -> std::error_code
nodiscard

◆ message()

auto message ( ) const -> const std::string &
nodiscard

◆ operator bool()

operator bool ( ) const
explicit

◆ operator==()

auto operator== ( const error & other) const -> bool

The documentation for this class was generated from the following file: