HighFive 3.0.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)
 
 Exception (const Exception &other)=default
 
 Exception (Exception &&other) noexcept=default
 
Exceptionoperator= (const Exception &other)=default
 
Exceptionoperator= (Exception &&other) noexcept=default
 
 ~Exception () noexcept override
 
const char * what () const noexcept override
 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.
 

Friends

struct HDF5ErrMapper
 

Detailed Description

Basic HighFive Exception class.

Constructor & Destructor Documentation

◆ Exception() [1/3]

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

◆ Exception() [2/3]

HighFive::Exception::Exception ( const Exception other)
default

◆ Exception() [3/3]

HighFive::Exception::Exception ( Exception &&  other)
defaultnoexcept

◆ ~Exception()

HighFive::Exception::~Exception ( )
inlineoverridenoexcept

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

◆ operator=() [1/2]

Exception & HighFive::Exception::operator= ( const Exception other)
default

◆ operator=() [2/2]

Exception & HighFive::Exception::operator= ( Exception &&  other)
defaultnoexcept

◆ setErrorMsg()

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

define the error message

Parameters
errmsg

◆ what()

const char * HighFive::Exception::what ( ) const
inlineoverridenoexcept

get the current exception error message

Returns

Friends And Related Symbol Documentation

◆ HDF5ErrMapper

friend struct HDF5ErrMapper
friend

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