Electroneum
error.h File Reference
#include <system_error>
#include <type_traits>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::is_error_code_enum<::lmdb::error >
 

Namespaces

 lmdb
 

Macros

#define ELECTRONEUM_LMDB_CHECK(...)
 Executes a LMDB command, and returns errors via lmdb::error enum. More...
 

Enumerations

enum  lmdb::error : int
 Tracks LMDB error codes. More...
 

Functions

std::error_category const & lmdb::error_category () noexcept
 
std::error_code lmdb::make_error_code (error value) noexcept
 

Macro Definition Documentation

◆ ELECTRONEUM_LMDB_CHECK

#define ELECTRONEUM_LMDB_CHECK (   ...)
Value:
do \
{ \
const int err = __VA_ARGS__ ; \
if (err) \
return {lmdb::error(err)}; \
} while (0)
error
Tracks LMDB error codes.
Definition: error.h:44

Executes a LMDB command, and returns errors via lmdb::error enum.

Definition at line 33 of file error.h.