hamsterdb Embedded Database 1.1.15
|
#include <hamsterdb.hpp>
Public Member Functions | |
error (ham_status_t st) | |
ham_status_t | get_errno () const |
const char * | get_string () const |
Private Attributes | |
ham_status_t | m_errno |
An error class.
The hamsterdb C++ API throws this class as Exceptions.
Definition at line 61 of file hamsterdb.hpp.
ham::error::error | ( | ham_status_t | st | ) | [inline] |
Constructor
Definition at line 64 of file hamsterdb.hpp.
ham_status_t ham::error::get_errno | ( | ) | const [inline] |
Returns the error code.
Definition at line 68 of file hamsterdb.hpp.
References m_errno.
Referenced by main(), and run_demo().
const char* ham::error::get_string | ( | ) | const [inline] |
Returns an English error description.
Definition at line 73 of file hamsterdb.hpp.
References ham_strerror(), and m_errno.
Referenced by main(), and run_demo().
ham_status_t ham::error::m_errno [private] |
Definition at line 78 of file hamsterdb.hpp.
Referenced by get_errno(), and get_string().