PMDK C++ bindings
1.10.1
This is the C++ bindings documentation for PMDK's libpmemobj.
|
Go to the documentation of this file.
9 #ifndef LIBPMEMOBJ_CPP_PEXCEPTIONS_HPP
10 #define LIBPMEMOBJ_CPP_PEXCEPTIONS_HPP
14 #include <system_error>
16 #include <libpmemobj/atomic_base.h>
17 #include <libpmemobj/base.h>
32 return std::string(pmemobj_errormsgU());
34 return std::string(pmemobj_errormsg());
49 using std::runtime_error::runtime_error;
52 with_pmemobj_errormsg()
54 (*this) =
pool_error(what() + std::string(
": ") +
67 using std::runtime_error::runtime_error;
70 with_pmemobj_errormsg()
86 using std::system_error::system_error;
89 with_pmemobj_errormsg()
92 what() + std::string(
": ") +
105 using transaction_error::transaction_error;
108 with_pmemobj_errormsg()
125 public std::bad_alloc {
127 using transaction_alloc_error::transaction_alloc_error;
128 using transaction_alloc_error::what;
131 with_pmemobj_errormsg()
134 transaction_alloc_error::what() + std::string(
": ") +
147 using transaction_alloc_error::transaction_alloc_error;
150 with_pmemobj_errormsg()
165 using std::logic_error::logic_error;
175 using std::runtime_error::runtime_error;
185 using std::runtime_error::runtime_error;
195 using std::runtime_error::runtime_error;
198 with_pmemobj_errormsg()
200 (*this) =
ctl_error(what() + std::string(
": ") +
214 using std::runtime_error::runtime_error;
222 with_pmemobj_errormsg()
225 what() + std::string(
": ") +
Custom transaction error class.
Definition: pexceptions.hpp:145
Custom pool error class.
Definition: pexceptions.hpp:47
Custom transaction error class.
Definition: pexceptions.hpp:65
Persistent memory namespace.
Definition: allocation_flag.hpp:15
Custom out of memory error class.
Definition: pexceptions.hpp:125
std::string errormsg(void)
Return last libpmemobj error message as a std::string.
Definition: pexceptions.hpp:29
pobj_defrag_result result
Results of the defragmentation run.
Definition: pexceptions.hpp:236
Custom lock error class.
Definition: pexceptions.hpp:84
Custom defrag error class.
Definition: pexceptions.hpp:212
Custom layout error class.
Definition: pexceptions.hpp:183
Custom transaction error class.
Definition: pexceptions.hpp:163
Custom ctl error class.
Definition: pexceptions.hpp:193
Custom transaction error class.
Definition: pexceptions.hpp:173
Custom transaction error class.
Definition: pexceptions.hpp:103