/* * Class: hdf_hdf5lib_H5 * Method: H5Eclose_msg * Signature: (J)V */ JNIEXPORT void JNICALL Java_hdf_hdf5lib_H5_H5Eclose_1msg (JNIEnv *env, jclass cls, jlong err_id) { if (err_id < 0) { h5badArgument(env, "H5Eclose_msg: invalid argument"); } /* end if */ else if (H5Eclose_msg((hid_t)err_id) < 0) h5libraryError(env); } /* end Java_hdf_hdf5lib_H5_H5Eclose_1msg */
/*------------------------------------------------------------------------- * Function: close_error * * Purpose: Closes error information. * * Return: Success: 0 * * Failure: -1 * * Programmer: Raymond Lu * July 10, 2003 * *------------------------------------------------------------------------- */ static herr_t close_error(void) { /* Close major errors, let H5Eunregister_class close minor errors */ if(H5Eclose_msg(ERR_MAJ_TEST) < 0) TEST_ERROR; if(H5Eclose_msg(ERR_MAJ_IO) < 0) TEST_ERROR; if(H5Eclose_msg(ERR_MAJ_API) < 0) TEST_ERROR; if(H5Eunregister_class(ERR_CLS) < 0) TEST_ERROR; if(H5Eunregister_class(ERR_CLS2) < 0) TEST_ERROR; return 0; error: return -1; } /* end close_error() */