H5Eset_auto2

fnherr_t H5Eset_auto2(hid_t estack_id, H5E_auto2_t func, void * client_data)

Sets automatic error reporting.

Parameters

estack_idError stack identifier, or H5E_DEFAULT
funcCallback function for automatic error reporting (use null to disable)
client_dataUser data to pass to the callback

Returns

Non-negative on success, negative on failure.