Zserio C++17 runtime library 1.3.0
Built for Zserio 2.20.0
Loading...
Searching...
No Matches
SqliteException.h
Go to the documentation of this file.
1#ifndef ZSERIO_SQLITE_EXCEPTION_H_INC
2#define ZSERIO_SQLITE_EXCEPTION_H_INC
3
5
6#include "sqlite3.h"
7
8namespace zserio
9{
10
13{
14public:
21 m_code(sqliteCode)
22 {}
23
30 const char* getErrorString() const
31 {
32 return sqlite3_errstr(m_code);
33 }
34
35private:
36 int m_code;
37};
38
47
55{
56 return exception << code.getErrorString();
57}
58
59} // namespace zserio
60
61#endif // ifndef ZSERIO_SQLITE_EXCEPTION_H_INC
CppRuntimeException(const char *message="")
SqliteErrorCode(int sqliteCode)
const char * getErrorString() const
CppRuntimeException & operator<<(CppRuntimeException &exception, const BasicBitBuffer< ALLOC > &bitBuffer)
Definition BitBuffer.h:554