Zserio C++ runtime library
1.0.0
Built for Zserio 2.13.0
Main Page
Namespaces
Classes
Files
File List
File Members
SqliteException.h
Go to the documentation of this file.
1
#ifndef ZSERIO_SQLITE_EXCEPTION_H_INC
2
#define ZSERIO_SQLITE_EXCEPTION_H_INC
3
4
#include "sqlite3.h"
5
6
#include "
zserio/CppRuntimeException.h
"
7
8
namespace
zserio
9
{
10
12
class
SqliteErrorCode
13
{
14
public
:
20
explicit
SqliteErrorCode
(
int
sqliteCode) : m_code(sqliteCode)
21
{}
22
29
const
char
*
getErrorString
()
const
30
{
31
return
sqlite3_errstr(m_code);
32
}
33
34
private
:
35
int
m_code;
36
};
37
39
class
SqliteException
:
public
CppRuntimeException
40
{
41
public
:
42
using
CppRuntimeException::CppRuntimeException
;
43
};
44
51
inline
CppRuntimeException
&
operator<<
(
CppRuntimeException
& exception,
SqliteErrorCode
code)
52
{
53
return
exception << code.
getErrorString
();
54
}
55
56
}
// namespace zserio
57
58
#endif // ifndef ZSERIO_SQLITE_EXCEPTION_H_INC
zserio
Definition:
AllocatorHolder.h:6
CppRuntimeException.h
zserio::CppRuntimeException
Definition:
CppRuntimeException.h:20
zserio::SqliteErrorCode::SqliteErrorCode
SqliteErrorCode(int sqliteCode)
Definition:
SqliteException.h:20
zserio::SqliteErrorCode::getErrorString
const char * getErrorString() const
Definition:
SqliteException.h:29
zserio::SqliteErrorCode
Definition:
SqliteException.h:12
zserio::CppRuntimeException::CppRuntimeException
CppRuntimeException(const char *message="")
Definition:
CppRuntimeException.cpp:10
zserio::SqliteException
Definition:
SqliteException.h:39
zserio::operator<<
CppRuntimeException & operator<<(CppRuntimeException &exception, const BasicBitBuffer< ALLOC > &bitBuffer)
Definition:
BitBuffer.h:432
zserio
SqliteException.h
Generated by
1.8.11