h5cpp  0.6.1
A modern C++ wrapper for the HDF5 C library
hdf5::error::Descriptor Struct Reference

HDF5 error descriptor. More...

#include <descriptor.hpp>

Public Member Functions

 Descriptor (const H5E_error2_t &descr)
 constructor More...
 
void extract_strings ()
 

Public Attributes

hid_t maj_num
 
hid_t min_num
 
std::string major
 
std::string minor
 
unsigned line
 
std::string function
 
std::string file
 
std::string description
 

Detailed Description

This is a descriptor for an error from the HDF5 error stack. It contains information about where in the underlying HDF5 library an error occurred. Such information may be passed on to the user of the library along with thrown exceptions, but only in the case that automatic error stack printing is turned off.

Constructor & Destructor Documentation

◆ Descriptor()

hdf5::error::Descriptor::Descriptor ( const H5E_error2_t &  descr)

Constructs a mostly human-readable descriptor from the underlying C-API handle. Only used by the library internally.

Parameters
descrreference to C-API error entry

Member Function Documentation

◆ extract_strings()

void hdf5::error::Descriptor::extract_strings ( )

Member Data Documentation

◆ description

std::string hdf5::error::Descriptor::description

◆ file

std::string hdf5::error::Descriptor::file

◆ function

std::string hdf5::error::Descriptor::function

◆ line

unsigned hdf5::error::Descriptor::line

◆ maj_num

hid_t hdf5::error::Descriptor::maj_num

◆ major

std::string hdf5::error::Descriptor::major

◆ min_num

hid_t hdf5::error::Descriptor::min_num

◆ minor

std::string hdf5::error::Descriptor::minor

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