libdballe 9.6
error.h
1#ifndef DBALLE_CORE_ERROR_H
2#define DBALLE_CORE_ERROR_H
3
4#include <wreport/error.h>
5
6namespace dballe {
7
9struct error : public wreport::error
10{
17 static const char* strerror(wreport::ErrorCode code);
18};
19
21struct error_db : public error
22{
23 wreport::ErrorCode code() const noexcept override { return wreport::WR_ERR_ODBC; }
24};
25
26}
27
28#endif
virtual ErrorCode code() const noexcept=0
Error in case of failed database operations.
Definition: error.h:22
Base exception for DB-All.e errors.
Definition: error.h:10
static const char * strerror(wreport::ErrorCode code)
String description for an error code.