SQL exception.
More...
#include <sqlException.hpp>
SQL exception.
Manage every SQL error
- Todo
- put implementation in cpp file
- Author
- Vincent Lachenal
- Since
- 0.1
◆ SqlException()
anch::sql::SqlException::SqlException |
( |
std::string | msg, |
|
|
bool | ok = true ) |
|
noexcept |
SqlException constructor
- Parameters
-
msg | the error message |
ok | connection status |
◆ ~SqlException()
virtual anch::sql::SqlException::~SqlException |
( |
| ) |
|
|
virtualnoexcept |
◆ isOK()
bool anch::sql::SqlException::isOK |
( |
| ) |
const |
|
inlinenoexcept |
Connection status getter
- Returns
true
if connection can be reused, false
otherwise
◆ what()
virtual const char * anch::sql::SqlException::what |
( |
| ) |
const |
|
virtualnoexcept |
Error message getter
- Returns
- the error message
The documentation for this class was generated from the following file: