When an error occurs deep within the HDF5 library a record is pushed onto an error stack and that function returns a failure indication. Its caller detects the failure, pushes another record onto the stack, and returns a failure indication. In normal circumstances, an error causes the stack to be printed on the standard error stream. If an application calls H5Tclose on a predefined datatype then the following message is printed on the standard error stream. Error detected in thread 0.
Back trace follows.
The error stack is printed on the specified stream. Error detected in thread 0. The error stack can be explicitly cleared by calling this function. Sometimes an application will call a function for the sake of its return value, fully expecting the function to fail. Under these conditions, it would be misleading if an error message were automatically printed.