Joedb
9.1.3
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
error
Posthumous_Catcher.cpp
Go to the documentation of this file.
1
#include "
joedb/error/Posthumous_Catcher.h
"
2
#include "
joedb/error/Exception.h
"
3
4
namespace
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
////////////////////////////////////////////////////////////////////////////
28
void
Posthumous_Catcher::rethrow
()
29
////////////////////////////////////////////////////////////////////////////
30
{
31
if
(exception)
32
std::rethrow_exception(exception);
33
}
34
}
Exception.h
Posthumous_Catcher.h
joedb::Posthumous_Catcher::rethrow
void rethrow()
Definition
Posthumous_Catcher.cpp:28
joedb
Definition
Blob.h:7
Generated by
1.9.8