upscaledb  2.2.1
Public Member Functions | Private Attributes
upscaledb::error Class Reference

#include <upscaledb.hpp>

Public Member Functions

 error (ups_status_t st)
 
ups_status_t get_errno () const
 
const char * get_string () const
 

Private Attributes

ups_status_t _status
 

Detailed Description

An error class.

The upscaledb C++ API throws this class as Exceptions.

Definition at line 66 of file upscaledb.hpp.

Constructor & Destructor Documentation

upscaledb::error::error ( ups_status_t  st)
inline

Member Function Documentation

ups_status_t upscaledb::error::get_errno ( ) const
inline

Returns the error code.

Definition at line 74 of file upscaledb.hpp.

References _status.

Referenced by main(), run_demo(), upscaledb::cursor::~cursor(), upscaledb::db::~db(), and upscaledb::env::~env().

const char* upscaledb::error::get_string ( ) const
inline

Returns an English error description.

Definition at line 79 of file upscaledb.hpp.

References _status, and ups_strerror().

Referenced by main(), and run_demo().

Field Documentation

ups_status_t upscaledb::error::_status
private

Definition at line 84 of file upscaledb.hpp.

Referenced by get_errno(), and get_string().


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