ddn.lib.hdf5.h5e
HDF5 Error Handling Binding
This module provides D bindings for HDF5 error handling (H5E API). These functions allow managing error stacks, setting error handlers, and retrieving error information.
License
Types 8
Error type enumeration.
Identifies whether an error message is a major or minor error.
Error stack traversal direction.
Controls the order in which errors are visited when walking the error stack.
Error information structure (version 1, deprecated).
Contains detailed information about a single error in the error stack. This is the older API structure; prefer H5E_error2_t for new code.
hid_t maj_numMajor error numberhid_t min_numMinor error numberconst(char) * func_nameFunction in which error occurredconst(char) * file_nameFile in which error occurreduint lineLine in file where error occursconst(char) * descOptional supplied descriptionError information structure (version 2).
Contains detailed information about a single error in the error stack.
hid_t cls_idClass IDhid_t maj_numMajor error IDhid_t min_numMinor error numberuint lineLine in file where error occursconst(char) * func_nameFunction in which error occurredconst(char) * file_nameFile in which error occurredconst(char) * descOptional supplied descriptionError stack walk callback function type (version 2).
Parameters
n | Index of the error in the stack |
err_desc | Pointer to error description structure |
client_data | User-supplied data passed to the callback |
Returns
Automatic error reporting callback function type (version 2).
Parameters
estack | Error stack identifier |
client_data | User-supplied data passed to the callback |
Returns
Error stack walk callback function type (version 1, deprecated).
Parameters
n | Index of the error in the stack |
err_desc | Pointer to error description structure |
client_data | User-supplied data passed to the callback |
Returns
Automatic error reporting callback function type (version 1, deprecated).
Parameters
client_data | User-supplied data passed to the callback |
Returns
Functions 31
hid_t H5Eregister_class(const char * cls_name, const char * lib_name, const char * version_)Registers a new error class.herr_t H5Eappend_stack(hid_t dst_stack_id, hid_t src_stack_id, hbool_t close_source_stack)Appends one error stack to another.ssize_t H5Eget_class_name(hid_t class_id, char * name, size_t size)Gets the name of an error class.herr_t H5Epush2(hid_t err_stack, const char * file, const char * func, uint line,
hid_t cls_id, hid_t maj_id, hid_t min_id, const char * msg, ...)Pushes a new error onto an error stack.herr_t H5Ewalk2(hid_t err_stack, H5E_direction_t direction, H5E_walk2_t func, void * client_data)Walks the error stack, calling a callback for each error.herr_t H5Eget_auto2(hid_t estack_id, H5E_auto2_t * func, void * * client_data)Gets the current automatic error reporting settings.herr_t H5Eset_auto2(hid_t estack_id, H5E_auto2_t func, void * client_data)Sets automatic error reporting.herr_t H5Eauto_is_v2(hid_t err_stack, uint * is_stack)Checks if the error stack is using version 2 format.ssize_t H5Eget_msg(hid_t msg_id, H5E_type_t * type, char * msg, size_t size)Gets an error message.herr_t H5Eget_auto1(H5E_auto1_t * func, void * * client_data)Gets the current automatic error reporting settings (version 1, deprecated).herr_t H5Epush1(const char * file, const char * func, uint line,
hid_t maj, hid_t min, const char * str)Pushes a new error onto the default error stack (version 1, deprecated).herr_t H5Eset_auto1(H5E_auto1_t func, void * client_data)Sets automatic error reporting (version 1, deprecated).herr_t H5Ewalk1(H5E_direction_t direction, H5E_walk1_t func, void * client_data)Walks the error stack, calling a callback for each error (version 1, deprecated).Variables 1
H5E_DEFAULT = 0Default error stack identifier.
Used to refer to the current thread's error stack.