lmdb++
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
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. More...
 
int code () const noexcept
 Returns the underlying LMDB error code. More...
 
const char * origin () const noexcept
 Returns the origin of the LMDB error. More...
 
virtual const char * what () const noexcept
 Returns the underlying LMDB error code. More...
 

Static Public Member Functions

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

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

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

Constructor.

Member Function Documentation

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

Returns the underlying LMDB error code.

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

Returns the origin of the LMDB error.

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

Throws an error based on the given LMDB return code.

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

Returns the underlying LMDB error code.

Member Data Documentation

const int lmdb::error::_code
protected

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