Re-write of Java JNI error handling

This commit is contained in:
Jordan Henderson
2019-02-11 10:58:58 -06:00
parent 0527ced1c7
commit 35f48aac5b
57 changed files with 18290 additions and 15875 deletions

View File

@@ -124,7 +124,7 @@ public class TestH5Oparams {
H5.H5Oset_comment(-1, "Bogus");
}
@Test(expected = IllegalArgumentException.class)
@Test(expected = HDF5LibraryException.class)
public void testH5Oget_comment_invalid() throws Throwable {
H5.H5Oget_comment(-1);
}
@@ -139,7 +139,7 @@ public class TestH5Oparams {
H5.H5Oset_comment_by_name(-1, null, null, -1);
}
@Test(expected = IllegalArgumentException.class)
@Test(expected = HDF5LibraryException.class)
public void testH5Oget_comment_by_name_invalid() throws Throwable {
H5.H5Oget_comment_by_name(-1, "Bogus", -1);
}