MDBX Containers
Loading...
Searching...
No Matches
mdbxc::MdbxException Class Reference

Represents a specific exception for MDBX-related errors. More...

#include <MdbxException.hpp>

Inheritance diagram for mdbxc::MdbxException:

Public Member Functions

 MdbxException (const std::string &message, int error_code=-1)
 Constructs a new MdbxException with the given message and error code.
 
int error_code () const noexcept
 Returns the MDBX error code associated with this exception.
 

Private Attributes

int m_error_code
 The MDBX error code associated with the exception.
 

Detailed Description

Represents a specific exception for MDBX-related errors.

This exception is used to handle errors that occur during MDBX operations. It extends std::runtime_error and adds support for storing an MDBX-specific error code.

Definition at line 16 of file MdbxException.hpp.

Constructor & Destructor Documentation

◆ MdbxException()

mdbxc::MdbxException::MdbxException ( const std::string & message,
int error_code = -1 )
inlineexplicit

Constructs a new MdbxException with the given message and error code.

Parameters
messageThe error message describing the exception.
error_codeThe MDBX error code associated with this exception (default: -1).

Definition at line 21 of file MdbxException.hpp.

Member Function Documentation

◆ error_code()

int mdbxc::MdbxException::error_code ( ) const
inlinenoexcept

Returns the MDBX error code associated with this exception.

Returns
The MDBX error code.

Definition at line 26 of file MdbxException.hpp.

Member Data Documentation

◆ m_error_code

int mdbxc::MdbxException::m_error_code
private

The MDBX error code associated with the exception.

Definition at line 31 of file MdbxException.hpp.


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