Class mdbx::error
Implements error information and throwing corresponding exceptions.
#include <mdbx.h++>
Public Functions
| Type | Name |
|---|---|
| error (const error &) = default |
|
| error (error &&) = default |
|
| ::std::string | message () const Returns message for any errors. |
| error & | operator= (const error &) = default |
| error & | operator= (error &&) = default |
| void | throw_exception () const Panics on unrecoverable errors inside destructors etc. |
| const char * | what () noexcept const Returns message for MDBX's errors only and "SYSTEM" for others. |
Public Static Functions
| Type | Name |
|---|---|
| void | success_or_throw (int error_code) |
Public Functions Documentation
function error [1/2]
mdbx::error::error (
const error &
) = default
function error [2/2]
mdbx::error::error (
error &&
) = default
function message
Returns message for any errors.
::std::string mdbx::error::message () const
function operator=
error & mdbx::error::operator= (
const error &
) = default
function operator=
error & mdbx::error::operator= (
error &&
) = default
function throw_exception
Panics on unrecoverable errors inside destructors etc.
void mdbx::error::throw_exception () const
function what
Returns message for MDBX's errors only and "SYSTEM" for others.
const char * mdbx::error::what () noexcept const
Public Static Functions Documentation
function success_or_throw
static inline void mdbx::error::success_or_throw (
int error_code
)
Friends Documentation
friend operator!=
friend bool mdbx::error::operator!= (
const error & a,
const error & b
)
friend operator==
friend bool mdbx::error::operator== (
const error & a,
const error & b
)
The documentation for this class was generated from the following file docs/mdbx.h++