Client Library Desires to Unregister from the HDF5 Error API Code Example:

(Unregister Client Library Use Case Scenario)


/* Client error class ID */
hid_t CLIENT_ERROR;

/* Major error code IDs */
hid_t CLIENT_ERR_MAJOR_IO;		/* Errors on I/O */
hid_t CLIENT_ERR_MAJOR_FILE;	/* Errors on file access */
   .
   .
   .

/* Minor error code IDs */
hid_t CLIENT_ERR_MINOR_PERM;	/* Invalid permissions */
hid_t CLIENT_ERR_MINOR_HDF5;	/* Error in HDF5 */
   .
   .
   .

int Client_unregister_error
{
	/* Unregister a major error code */
	H5Eclose_mesg(CLIENT_ERR_MAJOR_IO);
		.
		.
		.
	/* Unregister a minor error code */
	H5Eclose_mesg(CLIENT_ERR_MINOR_PERM);
		.
		.
		.
	/* Unregister the entire error class from the HDF5 error API */
	H5Eunregister_class(CLIENT_ERROR);
		.
		.
		.
}