Prints the specified error stack in a default manner
Procedure:
H5E_PRINT2(estack_id, stream)
Signature:
herr_t H5Eprint2( hid_t estack_id, FILE * stream)
SUBROUTINE h5eprint_f(hdferr, name)
CHARACTER(LEN=*), OPTIONAL, INTENT(IN) :: name ! File name
INTEGER, INTENT(OUT) :: hdferr ! Error code
END SUBROUTINE h5eprint_f
Parameters:
hid_t estack_id | IN: Identifier of the error stack to be printed If the identifier is H5E_DEFAULT , the current error stack will be printed. |
FILE * stream | IN: File pointer, or stderr if NULL |
Description:
H5E_PRINT2 prints the error stack specified by estack_id
on the specified stream, stream
. Even if the error stack is empty, a one-line message of the following form will be printed:
HDF5-DIAG: Error detected in HDF5 library version: 1.5.62 thread 0.
A similar line will appear before the error messages of each error class stating the library name, library version number, and thread identifier.
If estack_id
is H5E_DEFAULT
, the current error stack will be printed.
H5E_PRINT2 is a convenience function for H5E_WALK2 with a function that prints error messages. Users are encouraged to write their own more specific error handlers.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
Example:
History:
Release | C |
1.8.0 | Function introduced in this release. |
--- Last Modified: April 13, 2018 | 02:07 PM