![]() |
MDBX Containers
|
Represents a specific exception for MDBX-related errors. More...
#include <MdbxException.hpp>
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. | |
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.
|
inlineexplicit |
Constructs a new MdbxException with the given message and error code.
message | The error message describing the exception. |
error_code | The MDBX error code associated with this exception (default: -1). |
Definition at line 21 of file MdbxException.hpp.
|
inlinenoexcept |
Returns the MDBX error code associated with this exception.
Definition at line 26 of file MdbxException.hpp.
|
private |
The MDBX error code associated with the exception.
Definition at line 31 of file MdbxException.hpp.