34 #pragma clang diagnostic push
35 #pragma clang diagnostic ignored "-Wold-style-cast"
37 const decltype(H5E_DEFAULT)
kDefault = H5E_DEFAULT;
39 #pragma clang diagnostic pop
62 return singleton_instance;
116 void operator=(
Singleton const&) =
delete;
118 bool auto_print_ {
true};
126 bool auto_print_enabled()
const;
132 static herr_t to_list(
unsigned n,
133 const H5E_error2_t *err_desc,
134 std::list<Descriptor>* list);
runtime exception containing an HDF5 error H5CError
Definition: h5c_error.hpp:48
singleton class for HDF5 error handling
Definition: error.hpp:51
void clear_stack()
clears HDF5 error stack
static Singleton & instance()
reference to singleton
Definition: error.hpp:59
void auto_print(bool enable)
toggle automatic printing of error stack
bool auto_print() const
indicates if automatic printing of error stack is on
H5CError extract_stack()
returns most recent error stack as Stack
void throw_with_stack(const std::string &message)
throws an exception, potentially nested with error stack
std::string print_nested(const std::exception &exception, size_t level=0)
indented output of nested exceptions and included error stack
decltype(H5E_DEFAULT) const kDefault
Definition: error.hpp:37
top-level namespace of the entire library
Definition: attribute.hpp:45
#define DLL_EXPORT
Definition: windows.hpp:29