Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
exception.hpp
Go to the documentation of this file.
1
4
#pragma once
5
6
namespace
cppgres {
7
class
pg_exception
:
public
std::exception {
8
::MemoryContext mcxt;
9
::MemoryContext error_cxt;
10
::ErrorData *error;
11
12
pg_exception
(::MemoryContext mcxt);
13
14
const
char
*what()
const
noexcept
override
{
return
error->message; }
15
16
template
<
typename
Func>
friend
struct
ffi_guard
;
17
18
public
:
19
const
char
*message()
const
noexcept
{
return
error->message; }
20
~pg_exception
();
21
};
22
}
// namespace cppgres
cppgres::pg_exception
Definition:
exception.hpp:7
cppgres::ffi_guard
Definition:
guard.hpp:19
src
cppgres
exception.hpp
Generated by
1.9.6