Joedb 9.1.3
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Posthumous_Catcher.cpp
Go to the documentation of this file.
3
4namespace joedb
5{
6 ////////////////////////////////////////////////////////////////////////////
7 void Posthumous_Catcher::catch_current_exception(const char *message) noexcept
8 ////////////////////////////////////////////////////////////////////////////
9 {
10 if (!exception)
11 {
12 exception = std::current_exception();
13 if (!exception)
14 {
15 try
16 {
17 throw Exception(message);
18 }
19 catch (...)
20 {
21 exception = std::current_exception();
22 }
23 }
24 }
25 }
26
27 ////////////////////////////////////////////////////////////////////////////
29 ////////////////////////////////////////////////////////////////////////////
30 {
31 if (exception)
32 std::rethrow_exception(exception);
33 }
34}
Definition Blob.h:7