mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-09 07:32:32 +08:00
HDFFV-10544 add class name to error text
This commit is contained in:
parent
ca7d4f85a5
commit
2f4832fe09
@ -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) { \
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user