PMDK C++ bindings
1.9.1
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());
78 using std::runtime_error::runtime_error;
81 with_pmemobj_errormsg()
83 (*this) =
pool_error(what() + std::string(
": ") +
96 using std::runtime_error::runtime_error;
99 with_pmemobj_errormsg()
115 using std::system_error::system_error;
118 with_pmemobj_errormsg()
121 what() + std::string(
": ") +
134 using transaction_error::transaction_error;
137 with_pmemobj_errormsg()
154 public std::bad_alloc {
156 using transaction_alloc_error::transaction_alloc_error;
157 using transaction_alloc_error::what;
160 with_pmemobj_errormsg()
163 transaction_alloc_error::what() + std::string(
": ") +
176 using transaction_alloc_error::transaction_alloc_error;
179 with_pmemobj_errormsg()
194 using std::logic_error::logic_error;
204 using std::runtime_error::runtime_error;
214 using std::runtime_error::runtime_error;
224 using std::runtime_error::runtime_error;
227 with_pmemobj_errormsg()
229 (*this) =
ctl_error(what() + std::string(
": ") +
243 using std::runtime_error::runtime_error;
251 with_pmemobj_errormsg()
254 what() + std::string(
": ") +
Custom transaction error class.
Definition: pexceptions.hpp:174
Custom pool error class.
Definition: pexceptions.hpp:76
Custom transaction error class.
Definition: pexceptions.hpp:94
Persistent memory namespace.
Definition: allocation_flag.hpp:44
Custom out of memory error class.
Definition: pexceptions.hpp:154
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:265
Custom lock error class.
Definition: pexceptions.hpp:113
Custom defrag error class.
Definition: pexceptions.hpp:241
Custom layout error class.
Definition: pexceptions.hpp:212
Custom transaction error class.
Definition: pexceptions.hpp:192
Custom ctl error class.
Definition: pexceptions.hpp:222
Custom transaction error class.
Definition: pexceptions.hpp:202
Custom transaction error class.
Definition: pexceptions.hpp:132