lmdb++
Loading...
Searching...
No Matches
lmdb::error Class Reference

Base class for LMDB exception conditions. More...

#include <lmdb++.h>

Inheritance diagram for lmdb::error:
lmdb::fatal_error lmdb::logic_error lmdb::runtime_error lmdb::corrupted_error lmdb::panic_error lmdb::version_mismatch_error lmdb::bad_dbi_error lmdb::key_exist_error lmdb::map_full_error lmdb::not_found_error

Public Member Functions

 error (const char *const origin, const int rc) noexcept
 Constructor.
 
int code () const noexcept
 Returns the underlying LMDB error code.
 
const char * origin () const noexcept
 Returns the origin of the LMDB error.
 
virtual const char * what () const noexcept
 Returns the underlying LMDB error code.
 

Static Public Member Functions

static void raise (const char *origin, int rc)
 Throws an error based on the given LMDB return code.
 

Protected Attributes

const int _code
 

Detailed Description

Base class for LMDB exception conditions.

See also
http://symas.com/mdb/doc/group__errors.html

Constructor & Destructor Documentation

◆ error()

lmdb::error::error ( const char *const origin,
const int rc )
inlinenoexcept

Constructor.

Member Function Documentation

◆ code()

int lmdb::error::code ( ) const
inlinenoexcept

Returns the underlying LMDB error code.

◆ origin()

const char * lmdb::error::origin ( ) const
inlinenoexcept

Returns the origin of the LMDB error.

◆ raise()

void lmdb::error::raise ( const char * origin,
int rc )
inlinestatic

Throws an error based on the given LMDB return code.

◆ what()

virtual const char * lmdb::error::what ( ) const
inlinevirtualnoexcept

Returns the underlying LMDB error code.

Member Data Documentation

◆ _code

const int lmdb::error::_code
protected

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