PMDK C++ bindings
1.9
This is the C++ bindings documentation for PMDK's libpmemobj.
|
Go to the documentation of this file.
38 #ifndef LIBPMEMOBJ_CPP_PEXCEPTIONS_HPP
39 #define LIBPMEMOBJ_CPP_PEXCEPTIONS_HPP
43 #include <system_error>
45 #include <libpmemobj/atomic_base.h>
46 #include <libpmemobj/base.h>
61 return std::string(pmemobj_errormsgU());
63 return std::string(pmemobj_errormsg());
76 using std::runtime_error::runtime_error;
79 with_pmemobj_errormsg()
81 (*this) =
pool_error(what() + std::string(
": ") +
94 using std::runtime_error::runtime_error;
97 with_pmemobj_errormsg()
113 using std::system_error::system_error;
116 with_pmemobj_errormsg()
119 what() + std::string(
": ") +
132 using transaction_error::transaction_error;
135 with_pmemobj_errormsg()
149 public std::bad_alloc {
151 using transaction_alloc_error::transaction_alloc_error;
152 using transaction_alloc_error::what;
155 with_pmemobj_errormsg()
158 transaction_alloc_error::what() + std::string(
": ") +
171 using transaction_alloc_error::transaction_alloc_error;
174 with_pmemobj_errormsg()
189 using std::logic_error::logic_error;
199 using std::runtime_error::runtime_error;
209 using std::runtime_error::runtime_error;
219 using std::runtime_error::runtime_error;
222 with_pmemobj_errormsg()
224 (*this) =
ctl_error(what() + std::string(
": ") +
238 using std::runtime_error::runtime_error;
246 with_pmemobj_errormsg()
249 what() + std::string(
": ") +
Custom transaction error class.
Definition: pexceptions.hpp:169
Custom pool error class.
Definition: pexceptions.hpp:74
Custom transaction error class.
Definition: pexceptions.hpp:92
Persistent memory namespace.
Definition: allocation_flag.hpp:44
Custom out of memory error class.
Definition: pexceptions.hpp:149
std::string errormsg(void)
Return last libpmemobj error message as a std::string.
Definition: pexceptions.hpp:58
pobj_defrag_result result
Results of the defragmentation run.
Definition: pexceptions.hpp:260
Custom lock error class.
Definition: pexceptions.hpp:111
Custom defrag error class.
Definition: pexceptions.hpp:236
Custom layout error class.
Definition: pexceptions.hpp:207
Custom transaction error class.
Definition: pexceptions.hpp:187
Custom ctl error class.
Definition: pexceptions.hpp:217
Custom transaction error class.
Definition: pexceptions.hpp:197
Custom transaction error class.
Definition: pexceptions.hpp:130