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

Classes

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

Functions

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

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,
int  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
exception
levelindentation level