diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2021-05-07 17:56:07 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2021-05-07 17:56:07 (GMT) |
commit | 7f58a89578b64df2b040d97294cb1cf2a82bebd3 (patch) | |
tree | de9971f9f1537a23e2ab59fa1ad4c2631164d20e /src/H5Emodule.h | |
parent | 79b92df2a262c09eb7461c5bbd9500209573653b (diff) | |
download | hdf5-7f58a89578b64df2b040d97294cb1cf2a82bebd3.zip hdf5-7f58a89578b64df2b040d97294cb1cf2a82bebd3.tar.gz hdf5-7f58a89578b64df2b040d97294cb1cf2a82bebd3.tar.bz2 |
Misc normalization from develop
Diffstat (limited to 'src/H5Emodule.h')
-rw-r--r-- | src/H5Emodule.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/H5Emodule.h b/src/H5Emodule.h index 1670c03..43d5d36 100644 --- a/src/H5Emodule.h +++ b/src/H5Emodule.h @@ -29,4 +29,33 @@ #define H5_MY_PKG_ERR H5E_ERROR #define H5_MY_PKG_INIT YES +/** + * \defgroup H5E H5E + * \brief Error Handling Interface + * + * \details The Error interface provides error handling in the form of a stack. + * The \Code{FUNC_ENTER} macro clears the error stack whenever an + * interface function is entered. When an error is detected, an entry + * is pushed onto the stack. As the functions unwind, additional + * entries are pushed onto the stack. The API function will return some + * indication that an error occurred and the application can print the + * error stack. + * + * Certain API functions in the \c H5E package, such as H5Eprint1(), do + * not clear the error stack. Otherwise, any function which does not + * have an underscore immediately after the package name will clear the + * error stack. For instance, H5Fopen() clears the error stack while + * \Code{H5F_open} does not. + * + * An error stack has a fixed maximum size. If this size is exceeded + * then the stack will be truncated and only the inner-most functions + * will have entries on the stack. This is expected to be a rare + * condition. + * + * Each thread has its own error stack, but since multi-threading has + * not been added to the library yet, this package maintains a single + * error stack. The error stack is statically allocated to reduce the + * complexity of handling errors within the \c H5E package. + */ + #endif /* H5Emodule_H */ |