Implements error information and throwing corresponding exceptions. More...
#include <mdbx.h++>
Public Member Functions | |
MDBX_CXX11_CONSTEXPR | error (MDBX_error_t error_code) noexcept |
error (const error &)=default | |
error (error &&)=default | |
error & | operator= (const error &)=default |
error & | operator= (error &&)=default |
MDBX_CXX11_CONSTEXPR bool | is_success () const noexcept |
MDBX_CXX11_CONSTEXPR bool | is_result_true () const noexcept |
MDBX_CXX11_CONSTEXPR bool | is_result_false () const noexcept |
MDBX_CXX11_CONSTEXPR bool | is_failure () const noexcept |
MDBX_CXX11_CONSTEXPR MDBX_error_t | code () const noexcept |
Returns error code. More... | |
const char * | what () const noexcept |
Returns message for MDBX's errors only and "SYSTEM" for others. More... | |
::std::string | message () const |
Returns message for any errors. More... | |
MDBX_CXX11_CONSTEXPR bool | is_mdbx_error () const noexcept |
Returns true for MDBX's errors. More... | |
void | panic (const char *context_where_when, const char *func_who_what) const noexcept |
Panics on unrecoverable errors inside destructors etc. More... | |
void | throw_exception () const |
void | throw_on_failure () const |
void | success_or_throw () const |
void | success_or_throw (const exception_thunk &) const |
void | panic_on_failure (const char *context_where, const char *func_who) const noexcept |
void | success_or_panic (const char *context_where, const char *func_who) const noexcept |
Static Public Member Functions | |
static void | throw_exception (int error_code) |
static void | throw_on_nullptr (const void *ptr, MDBX_error_t error_code) |
static void | success_or_throw (MDBX_error_t error_code) |
static void | success_or_throw (int error_code) |
static void | throw_on_failure (int error_code) |
static bool | boolean_or_throw (int error_code) |
static void | success_or_throw (int error_code, const exception_thunk &) |
static void | panic_on_failure (int error_code, const char *context_where, const char *func_who) noexcept |
static void | success_or_panic (int error_code, const char *context_where, const char *func_who) noexcept |
Friends | |
MDBX_CXX11_CONSTEXPR friend bool | operator== (const error &a, const error &b) noexcept |
MDBX_CXX11_CONSTEXPR friend bool | operator!= (const error &a, const error &b) noexcept |
Implements error information and throwing corresponding exceptions.
|
noexcept |
|
default |
|
default |
|
inlinestatic |
|
noexcept |
Returns error code.
|
noexcept |
|
noexcept |
Returns true for MDBX's errors.
|
noexcept |
|
noexcept |
|
noexcept |
::std::string mdbx::error::message | ( | ) | const |
Returns message for any errors.
|
noexcept |
Panics on unrecoverable errors inside destructors etc.
|
inlinenoexcept |
|
inlinestaticnoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
void mdbx::error::throw_exception | ( | ) | const |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
noexcept |
Returns message for MDBX's errors only and "SYSTEM" for others.
|
friend |
|
friend |