![]() |
libimgdoc2
|
Exception for signalling database errors. More...
#include <exceptions.h>
Public Member Functions | |
database_exception (const char *error_message) | |
database_exception (const char *error_message, int sqlite_error_code) | |
bool | GetIsSqliteErrorCodeValid () const |
int | GetSqliteErrorCode () const |
std::string | GetSqliteErrorMessage () const |
![]() | |
imgdoc2_exception (const char *error_message) | |
Exception for signalling database errors.
|
inlineexplicit |
Constructor.
error_message | Message describing the error. |
|
inlineexplicit |
Constructor.
error_message | Message describing the error. |
sqlite_error_code | The SQLite error code. |
|
inline |
Gets a boolean indicating whether the SQLite error code is valid.
|
inline |
Gets the SQLite error code. Call database_exception::GetIsSqliteErrorCodeValid() in order to test whether the error code is valid.
std::string imgdoc2::database_exception::GetSqliteErrorMessage | ( | ) | const |
Gets the SQLite provided error message for the error code. The result is unspecified if the error code is not valid.