Joedb
9.1.3
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
error
Posthumous_Catcher.h
Go to the documentation of this file.
1
#ifndef joedb_Posthumous_Catcher_declared
2
#define joedb_Posthumous_Catcher_declared
3
4
#include <exception>
5
6
namespace
joedb
7
{
8
/// Catch exceptions sent from the destructor of a @ref Posthumous_Thrower
9
/// @ingroup error
10
class
Posthumous_Catcher
11
{
12
friend
class
Posthumous_Thrower
;
13
14
private
:
15
std::exception_ptr exception;
16
void
catch_current_exception(
const
char
*message)
noexcept
;
17
18
public
:
19
void
rethrow
();
20
};
21
}
22
23
#endif
joedb::Posthumous_Catcher
Catch exceptions sent from the destructor of a Posthumous_Thrower.
Definition
Posthumous_Catcher.h:11
joedb::Posthumous_Catcher::rethrow
void rethrow()
Definition
Posthumous_Catcher.cpp:28
joedb::Posthumous_Thrower
A class that can postpone exceptions from its destructor by sending them to a Posthumous_Catcher.
Definition
Posthumous_Thrower.h:12
joedb
Definition
Blob.h:7
Generated by
1.9.8