PMDK C++ bindings
1.8.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
42 #include <system_error>
44 #include <libpmemobj/base.h>
59 return std::string(pmemobj_errormsgU());
61 return std::string(pmemobj_errormsg());
74 using std::runtime_error::runtime_error;
77 with_pmemobj_errormsg()
79 (*this) =
pool_error(what() + std::string(
": ") +
92 using std::runtime_error::runtime_error;
95 with_pmemobj_errormsg()
111 using std::system_error::system_error;
114 with_pmemobj_errormsg()
117 what() + std::string(
": ") +
130 using transaction_error::transaction_error;
133 with_pmemobj_errormsg()
147 public std::bad_alloc {
149 using transaction_alloc_error::transaction_alloc_error;
150 using transaction_alloc_error::what;
153 with_pmemobj_errormsg()
156 transaction_alloc_error::what() + std::string(
": ") +
169 using transaction_alloc_error::transaction_alloc_error;
172 with_pmemobj_errormsg()
187 using std::logic_error::logic_error;
197 using std::runtime_error::runtime_error;
207 using std::runtime_error::runtime_error;
217 using std::runtime_error::runtime_error;
220 with_pmemobj_errormsg()
222 (*this) =
ctl_error(what() + std::string(
": ") +
Custom transaction error class.
Definition: pexceptions.hpp:167
Custom pool error class.
Definition: pexceptions.hpp:72
Custom transaction error class.
Definition: pexceptions.hpp:90
A persistent version of concurrent hash map implementation Ref: https://arxiv.org/abs/1509....
Definition: allocation_flag.hpp:44
Custom out of memory error class.
Definition: pexceptions.hpp:147
Custom lock error class.
Definition: pexceptions.hpp:109
Custom layout error class.
Definition: pexceptions.hpp:205
std::string errormsg(void)
Return last libpmemobj error message as a std::string.
Definition: pexceptions.hpp:56
Custom transaction error class.
Definition: pexceptions.hpp:185
Custom ctl error class.
Definition: pexceptions.hpp:215
Custom transaction error class.
Definition: pexceptions.hpp:195
Custom transaction error class.
Definition: pexceptions.hpp:128