Joedb 9.1.3
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
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
6namespace joedb
7{
8 /// Catch exceptions sent from the destructor of a @ref Posthumous_Thrower
9 /// @ingroup error
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
Catch exceptions sent from the destructor of a Posthumous_Thrower.
A class that can postpone exceptions from its destructor by sending them to a Posthumous_Catcher.
Definition Blob.h:7