PMDK C++ bindings
1.12-git53.g67ba2be4
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());
47 using std::runtime_error::runtime_error;
50 with_pmemobj_errormsg()
52 (*this) =
pool_error(what() + std::string(
": ") +
65 using std::runtime_error::runtime_error;
68 with_pmemobj_errormsg()
84 using std::system_error::system_error;
87 with_pmemobj_errormsg()
90 what() + std::string(
": ") +
103 using transaction_error::transaction_error;
106 with_pmemobj_errormsg()
120 public std::bad_alloc {
122 using transaction_alloc_error::transaction_alloc_error;
123 using transaction_alloc_error::what;
126 with_pmemobj_errormsg()
129 transaction_alloc_error::what() + std::string(
": ") +
142 using transaction_alloc_error::transaction_alloc_error;
145 with_pmemobj_errormsg()
160 using std::logic_error::logic_error;
170 using std::runtime_error::runtime_error;
180 using std::runtime_error::runtime_error;
190 using std::runtime_error::runtime_error;
193 with_pmemobj_errormsg()
195 (*this) =
ctl_error(what() + std::string(
": ") +
209 using std::runtime_error::runtime_error;
217 with_pmemobj_errormsg()
220 what() + std::string(
": ") +
Custom transaction error class.
Definition: pexceptions.hpp:140
Custom pool error class.
Definition: pexceptions.hpp:45
Custom transaction error class.
Definition: pexceptions.hpp:63
Persistent memory namespace.
Definition: allocation_flag.hpp:15
Custom out of memory error class.
Definition: pexceptions.hpp:120
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:231
Custom lock error class.
Definition: pexceptions.hpp:82
Custom defrag error class.
Definition: pexceptions.hpp:207
Custom layout error class.
Definition: pexceptions.hpp:178
Custom transaction error class.
Definition: pexceptions.hpp:158
Custom ctl error class.
Definition: pexceptions.hpp:188
Custom transaction error class.
Definition: pexceptions.hpp:168
Custom transaction error class.
Definition: pexceptions.hpp:101