40#ifndef LM_IO_HDF5_HDF5_H_
41#define LM_IO_HDF5_HDF5_H_
60 HDF5Exception(herr_t errorCode,
const char * file,
const int line) :
Exception(
"HDF5 error",(int)errorCode,file,line) {}
70#define HDF5_EXCEPTION_CHECK(hdf5_call) {herr_t _hdf5_ret_=hdf5_call; if (_hdf5_ret_ < 0) throw lm::io::hdf5::HDF5Exception(_hdf5_ret_,__FILE__,__LINE__);}
73#define HDF5_EXCEPTION_CALL(val,hdf5_call) val=hdf5_call; if (val < 0) {herr_t _hdf5_err_=(herr_t)val; val=0; throw lm::io::hdf5::HDF5Exception(_hdf5_err_,__FILE__,__LINE__);}
Base class for exceptions.
Definition Exceptions.h:55
Exception(const char *message="")
Create an Exception.
Definition Exceptions.h:62
HDF5Exception(herr_t errorCode, const char *file, const int line)
Create the Exception.
Definition lm_hdf5.h:60
void printStackTrace()
Definition lm_hdf5.h:61
Definition LatticeBuilder.h:56
Definition Capsule.cpp:46