HighFive 2.10.0
HighFive - Header-only C++ HDF5 interface
Loading...
Searching...
No Matches
HighFive::Exception Class Reference

Basic HighFive Exception class. More...

#include <H5Exception.hpp>

Inheritance diagram for HighFive::Exception:
Collaboration diagram for HighFive::Exception:

Public Member Functions

 Exception (const std::string &err_msg)
 
virtual ~Exception () throw ()
 
const char * what () const override throw ()
 get the current exception error message
 
virtual void setErrorMsg (const std::string &errmsg)
 define the error message
 
ExceptionnextException () const
 nextException
 
hid_t getErrMajor () const
 HDF5 library error mapper.
 
hid_t getErrMinor () const
 HDF5 library error mapper.
 

Protected Attributes

std::string _errmsg
 
std::shared_ptr< Exception_next
 
hid_t _err_major
 
hid_t _err_minor
 

Friends

struct HDF5ErrMapper
 

Detailed Description

Basic HighFive Exception class.

Constructor & Destructor Documentation

◆ Exception()

HighFive::Exception::Exception ( const std::string & err_msg)
inline

◆ ~Exception()

virtual HighFive::Exception::~Exception ( )
throw ( )
inlinevirtual

Member Function Documentation

◆ getErrMajor()

hid_t HighFive::Exception::getErrMajor ( ) const
inline

HDF5 library error mapper.

Returns
HDF5 major error number

◆ getErrMinor()

hid_t HighFive::Exception::getErrMinor ( ) const
inline

HDF5 library error mapper.

Returns
HDF5 minor error number

◆ nextException()

Exception * HighFive::Exception::nextException ( ) const
inline

nextException

Returns
pointer to the next exception in the chain, or NULL if not existing

◆ setErrorMsg()

virtual void HighFive::Exception::setErrorMsg ( const std::string & errmsg)
inlinevirtual

define the error message

Parameters
errmsg

◆ what()

const char * HighFive::Exception::what ( ) const
throw ( )
inlineoverride

get the current exception error message

Returns

Friends And Related Symbol Documentation

◆ HDF5ErrMapper

friend struct HDF5ErrMapper
friend

Member Data Documentation

◆ _err_major

hid_t HighFive::Exception::_err_major
protected

◆ _err_minor

hid_t HighFive::Exception::_err_minor
protected

◆ _errmsg

std::string HighFive::Exception::_errmsg
protected

◆ _next

std::shared_ptr<Exception> HighFive::Exception::_next
protected

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