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

Classes

struct  Descriptor
 HDF5 error descriptor. More...
 
class  Singleton
 singleton class for HDF5 error handling More...
 
class  H5CError
 runtime exception containing an HDF5 error H5CError More...
 

Functions

std::ostream & operator<< (std::ostream &stream, const Descriptor &desc)
 output operator for Descriptor More...
 
std::string print_nested (const std::exception &exception, size_t level=0)
 indented output of nested exceptions and included error stack More...
 

Variables

decltype(H5E_DEFAULT) const kDefault = H5E_DEFAULT
 

Function Documentation

◆ operator<<()

std::ostream& hdf5::error::operator<< ( std::ostream &  stream,
const Descriptor desc 
)

◆ print_nested()

std::string hdf5::error::print_nested ( const std::exception &  exception,
size_t  level = 0 
)

This recursive function is provided for formatted output of nested exceptions and, if included, the extracted error stack. For each level of nesting and for each level of the error stack, the output is on a new line and incrementally indented.

Parameters
exceptionthe exception to print
levelindentation level

Variable Documentation

◆ kDefault

decltype(H5E_DEFAULT) const hdf5::error::kDefault = H5E_DEFAULT