Please, help us to better serve our user community by answering the following short survey: https://www.hdfgroup.org/website-survey/
HDF5  1.14.4.3
API Reference
 
Loading...
Searching...
No Matches
Exception Class Reference

#include <c++/src/H5Exception.h>

Detailed Description

Exception provides wrappers of HDF5 error handling functions.

Many classes are derived from Exception for specific HDF5 C interfaces.

+ Inheritance diagram for Exception:

Public Member Functions

 Exception (const std::string &func_name, const std::string &message=DEFAULT_MSG)
 
std::string getMajorString (hid_t err_major_id) const
 
std::string getMinorString (hid_t err_minor_id) const
 
std::string getDetailMsg () const
 
const char * getCDetailMsg () const
 
std::string getFuncName () const
 
const char * getCFuncName () const
 
 Exception ()
 
 Exception (const Exception &orig)
 
virtual ~Exception ()=default
 

Static Public Member Functions

static void setAutoPrint (H5E_auto2_t &func, void *client_data)
 
static void dontPrint ()
 
static void getAutoPrint (H5E_auto2_t &func, void **client_data)
 
static void clearErrorStack ()
 
static void walkErrorStack (H5E_direction_t direction, H5E_walk2_t func, void *client_data)
 
static void printErrorStack (FILE *stream=stderr, hid_t err_stack=H5E_DEFAULT)
 

Static Protected Attributes

static const char DEFAULT_MSG []
 

Constructor & Destructor Documentation

◆ Exception() [1/3]

Exception ( const std::string &  func_name,
const std::string &  message = DEFAULT_MSG 
)

◆ Exception() [2/3]

Exception ( )

◆ Exception() [3/3]

Exception ( const Exception orig)

◆ ~Exception()

virtual ~Exception ( )
virtualdefault

Member Function Documentation

◆ clearErrorStack()

static void clearErrorStack ( )
static

◆ dontPrint()

static void dontPrint ( )
static

◆ getAutoPrint()

static void getAutoPrint ( H5E_auto2_t func,
void **  client_data 
)
static

◆ getCDetailMsg()

const char * getCDetailMsg ( ) const

◆ getCFuncName()

const char * getCFuncName ( ) const

◆ getDetailMsg()

std::string getDetailMsg ( ) const

◆ getFuncName()

std::string getFuncName ( ) const

◆ getMajorString()

std::string getMajorString ( hid_t  err_major_id) const

◆ getMinorString()

std::string getMinorString ( hid_t  err_minor_id) const

◆ printErrorStack()

static void printErrorStack ( FILE *  stream = stderr,
hid_t  err_stack = H5E_DEFAULT 
)
static

◆ setAutoPrint()

static void setAutoPrint ( H5E_auto2_t func,
void *  client_data 
)
static

◆ walkErrorStack()

static void walkErrorStack ( H5E_direction_t  direction,
H5E_walk2_t  func,
void *  client_data 
)
static

Field Documentation

◆ DEFAULT_MSG

const char DEFAULT_MSG[]
staticprotected

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