h5gt 0.2.0
C++ wrapper for HDF5 library (based on HighFive project)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Friends | List of all members
h5gt::Exception Class Reference

Basic h5gt Exception class. More...

#include <H5Exception.hpp>

Inheritance diagram for h5gt::Exception:
h5gt::AttributeException h5gt::DataSetException h5gt::DataSpaceException h5gt::DataTypeException h5gt::FileException h5gt::GroupException h5gt::ObjectException h5gt::PropertyException h5gt::ReferenceException

Public Member Functions

 Exception (const std::string &err_msg)
 
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 h5gt Exception class.

Member Function Documentation

◆ getErrMajor()

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

HDF5 library error mapper.

Returns
HDF5 major error number

◆ getErrMinor()

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

HDF5 library error mapper.

Returns
HDF5 minor error number

◆ nextException()

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

nextException

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

◆ setErrorMsg()

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

define the error message

Parameters
errmsg

◆ what()

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

get the current exception error message

Returns

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