upscaledb  2.1.13
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 m_errno
 

Detailed Description

An error class.

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

Definition at line 65 of file upscaledb.hpp.

Constructor & Destructor Documentation

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

Constructor

Definition at line 68 of file upscaledb.hpp.

Member Function Documentation

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

Returns the error code.

Definition at line 73 of file upscaledb.hpp.

References m_errno.

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 78 of file upscaledb.hpp.

References m_errno, and ups_strerror().

Referenced by main(), and run_demo().

Field Documentation

ups_status_t upscaledb::error::m_errno
private

Definition at line 83 of file upscaledb.hpp.

Referenced by get_errno(), and get_string().


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