PMDK C++ bindings  1.13.0-git107.g7e59f08f
This is the C++ bindings documentation for PMDK's libpmemobj.
pmem::defrag_error Class Reference

Custom defrag error class. More...

#include <libpmemobj++/pexceptions.hpp>

Inherits std::runtime_error.

Public Member Functions

 defrag_error (pobj_defrag_result result, const std::string &msg)
 Construct error with partial results. More...
 

Public Attributes

pobj_defrag_result result
 Results of the defragmentation run. More...
 

Detailed Description

Custom defrag error class.

Thrown when the defragmentation process fails (possibly in the middle of a run).

Constructor & Destructor Documentation

◆ defrag_error()

pmem::defrag_error::defrag_error ( pobj_defrag_result  result,
const std::string &  msg 
)
inline

Construct error with partial results.

Parameters
resultpotential partial results of the defragmentation
msgerror message

Member Data Documentation

◆ result

pobj_defrag_result pmem::defrag_error::result

Results of the defragmentation run.

When failure occurs during the defragmentation, partial results will be stored in here.


The documentation for this class was generated from the following file: