Database related exception, containing a error code to differentiate between various errors. Note: what() typically contains a specific text about the error condition (sometimes helpful to resolve the issue). More...
#include <objectbox.hpp>
Public Member Functions | |
DbException (const std::string &text, int code=0) | |
DbException (const char *text, int code=0) | |
int | code () const override |
The error code as defined in objectbox.h via the OBX_ERROR_* constants. More... | |
Database related exception, containing a error code to differentiate between various errors. Note: what() typically contains a specific text about the error condition (sometimes helpful to resolve the issue).
|
inlineexplicit |
|
inlineexplicit |
|
inlineoverridevirtual |
The error code as defined in objectbox.h via the OBX_ERROR_* constants.
Implements obx::Exception.