HDFFV-10544 add class name to error text

This commit is contained in:
Allen Byrne 2018-08-06 09:23:21 -05:00
parent ca7d4f85a5
commit 2f4832fe09
5 changed files with 8 additions and 8 deletions

View File

@ -88,7 +88,7 @@ typedef struct H5E_num_t {
} \
ex = ENVPTR->NewObjectA (ENVPAR jc, jm, (jvalue*)(args)); \
if (ex == NULL) { \
printf("FATAL ERROR: Creation failed\n"); \
printf("FATAL ERROR: %s: Creation failed\n", (className)); \
return JNI_FALSE; \
} \
if (ENVPTR->Throw(ENVPAR (jthrowable)ex) < 0) { \

View File

@ -1167,7 +1167,7 @@ H5A_iterate_cb
if (constructor != 0) {
cb_info_t = CBENVPTR->NewObjectA(CBENVPAR cls, constructor, args);
if (cb_info_t == NULL) {
printf("FATAL ERROR: Creation failed\n");
printf("FATAL ERROR: hdf/hdf5lib/structs/H5A_info_t: Creation failed\n");
}
else {
status = CBENVPTR->CallIntMethod(CBENVPAR visit_callback, mid, g_id, str, cb_info_t, op_data);

View File

@ -509,7 +509,7 @@ H5E_walk_cb
if (constructor != 0) {
cb_info_t = CBENVPTR->NewObjectA(CBENVPAR cls, constructor, args);
if (cb_info_t == NULL) {
printf("FATAL ERROR: Creation failed\n");
printf("FATAL ERROR: hdf/hdf5lib/structs/H5E_error2_t: Creation failed\n");
}
else {
status = CBENVPTR->CallIntMethod(CBENVPAR visit_callback, mid, nindx, cb_info_t, op_data);

View File

@ -575,7 +575,7 @@ H5L_iterate_cb
if (constructor != 0) {
cb_info_t = CBENVPTR->NewObjectA(CBENVPAR cls, constructor, args);
if (cb_info_t == NULL) {
printf("FATAL ERROR: Creation failed\n");
printf("FATAL ERROR: hdf/hdf5lib/structs/H5L_info_t: Creation failed\n");
}
else {
status = CBENVPTR->CallIntMethod(CBENVPAR visit_callback, mid, g_id, str, cb_info_t, op_data);

View File

@ -373,7 +373,7 @@ H5O_iterate_cb
if (constructor != 0) {
hdrinfobuf = CBENVPTR->NewObjectA(CBENVPAR cls, constructor, args);
if (ihinfobuf2 == NULL) {
printf("FATAL ERROR: Creation failed\n");
printf("FATAL ERROR: hdf/hdf5lib/structs/H5O_hdr_info_t: Creation failed\n");
}
else {
args[0].j = (jlong)info->meta_size.obj.index_size;
@ -386,14 +386,14 @@ H5O_iterate_cb
if (constructor != 0) {
ihinfobuf1 = CBENVPTR->NewObjectA(CBENVPAR cls, constructor, args);
if (ihinfobuf1 == NULL) {
printf("FATAL ERROR: Creation failed\n");
printf("FATAL ERROR: hdf/hdf5lib/structs/H5_ih_info_t: Creation failed\n");
}
else {
args[0].j = (jlong)info->meta_size.attr.index_size;
args[1].j = (jlong)info->meta_size.attr.heap_size;
ihinfobuf2 = CBENVPTR->NewObjectA(CBENVPAR cls, constructor, args);
if (ihinfobuf2 == NULL) {
printf("FATAL ERROR: Creation failed\n");
printf("FATAL ERROR: hdf/hdf5lib/structs/H5_ih_info_t: Creation failed\n");
}
else {
args[0].j = (jlong)info->fileno;
@ -416,7 +416,7 @@ H5O_iterate_cb
if (constructor != 0) {
cb_info_t = CBENVPTR->NewObjectA(CBENVPAR cls, constructor, args);
if (cb_info_t == NULL) {
printf("FATAL ERROR: Creation failed\n");
printf("FATAL ERROR: hdf/hdf5lib/structs/H5O_info_t: Creation failed\n");
}
else {
status = CBENVPTR->CallIntMethod(CBENVPAR visit_callback, mid, g_id, str, cb_info_t, op_data);