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.
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.