Prints the specified error stack in a default manner


H5E_PRINT2(estack_id, stream)


<pre><code class="language-c">herr_t H5Eprint2( hid_t estack_id, FILE * stream)</code></pre>

<pre><code class="language-fortran">SUBROUTINE h5eprint_f(hdferr, name)
  CHARACTER(LEN=*), OPTIONAL, INTENT(IN) :: name ! File name 
  INTEGER, INTENT(OUT) :: hdferr                 ! Error code 

END SUBROUTINE h5eprint_f</code></pre>

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


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 a non-negative value if successful; otherwise returns a negative value.


Coming Soon!

Release    C
1.8.0Function introduced in this release.