summaryrefslogtreecommitdiffstats
path: root/java/src/hdf/hdf5lib/exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/hdf/hdf5lib/exceptions')
-rw-r--r--java/src/hdf/hdf5lib/exceptions/HDF5Exception.java3
-rw-r--r--java/src/hdf/hdf5lib/exceptions/HDF5IdException.java (renamed from java/src/hdf/hdf5lib/exceptions/HDF5AtomException.java)12
-rw-r--r--java/src/hdf/hdf5lib/exceptions/HDF5LibraryException.java8
-rw-r--r--java/src/hdf/hdf5lib/exceptions/HDF5ReferenceException.java6
4 files changed, 20 insertions, 9 deletions
diff --git a/java/src/hdf/hdf5lib/exceptions/HDF5Exception.java b/java/src/hdf/hdf5lib/exceptions/HDF5Exception.java
index 70e4160..0c23af1 100644
--- a/java/src/hdf/hdf5lib/exceptions/HDF5Exception.java
+++ b/java/src/hdf/hdf5lib/exceptions/HDF5Exception.java
@@ -31,6 +31,9 @@ package hdf.hdf5lib.exceptions;
*
*/
public class HDF5Exception extends RuntimeException {
+ /**
+ * the specified detail message of this exception
+ */
protected String detailMessage;
/**
diff --git a/java/src/hdf/hdf5lib/exceptions/HDF5AtomException.java b/java/src/hdf/hdf5lib/exceptions/HDF5IdException.java
index ee1b21f..04ee0bc 100644
--- a/java/src/hdf/hdf5lib/exceptions/HDF5AtomException.java
+++ b/java/src/hdf/hdf5lib/exceptions/HDF5IdException.java
@@ -16,26 +16,26 @@ package hdf.hdf5lib.exceptions;
/**
* The class HDF5LibraryException returns errors raised by the HDF5 library.
* <p>
- * This sub-class represents HDF-5 major error code <b>H5E_ATOM</b>
+ * This sub-class represents HDF-5 major error code <b>H5E_ID</b>
*/
-public class HDF5AtomException extends HDF5LibraryException {
+public class HDF5IdException extends HDF5LibraryException {
/**
- * Constructs an <code>HDF5AtomException</code> with no specified detail
+ * Constructs an <code>HDF5IdException</code> with no specified detail
* message.
*/
- public HDF5AtomException() {
+ public HDF5IdException() {
super();
}
/**
- * Constructs an <code>HDF5AtomException</code> with the specified detail
+ * Constructs an <code>HDF5IdException</code> with the specified detail
* message.
*
* @param s
* the detail message.
*/
- public HDF5AtomException(String s) {
+ public HDF5IdException(String s) {
super(s);
}
diff --git a/java/src/hdf/hdf5lib/exceptions/HDF5LibraryException.java b/java/src/hdf/hdf5lib/exceptions/HDF5LibraryException.java
index 5192eb7..532355e 100644
--- a/java/src/hdf/hdf5lib/exceptions/HDF5LibraryException.java
+++ b/java/src/hdf/hdf5lib/exceptions/HDF5LibraryException.java
@@ -30,7 +30,9 @@ import hdf.hdf5lib.HDF5Constants;
@SuppressWarnings("serial")
public class HDF5LibraryException extends HDF5Exception {
+ /** major error number of the first error on the HDF5 library error stack. */
private final long majorErrorNumber;
+ /** minor error number of the first error on the HDF5 library error stack. */
private final long minorErrorNumber;
/**
@@ -201,14 +203,14 @@ public class HDF5LibraryException extends HDF5Exception {
else if (err_code == HDF5Constants.H5E_CANTRELEASE) {
return "Can't release object";
}
- else if (err_code == HDF5Constants.H5E_BADATOM) {
- return "Can't find atom information";
+ else if (err_code == HDF5Constants.H5E_BADID) {
+ return "Can't find ID information";
}
else if (err_code == HDF5Constants.H5E_BADGROUP) {
return "Can't find group information";
}
else if (err_code == HDF5Constants.H5E_CANTREGISTER) {
- return "Can't register new atom";
+ return "Can't register new ID";
}
else if (err_code == HDF5Constants.H5E_CANTINC) {
return "Can't increment reference count";
diff --git a/java/src/hdf/hdf5lib/exceptions/HDF5ReferenceException.java b/java/src/hdf/hdf5lib/exceptions/HDF5ReferenceException.java
index 9a5392b..0701244 100644
--- a/java/src/hdf/hdf5lib/exceptions/HDF5ReferenceException.java
+++ b/java/src/hdf/hdf5lib/exceptions/HDF5ReferenceException.java
@@ -13,6 +13,12 @@
package hdf.hdf5lib.exceptions;
+/**
+ * The class HDF5LibraryException returns errors raised by the HDF5 library.
+ * <p>
+ * This sub-class represents HDF-5 major error code <b>H5E_REFERENCE</b>
+ */
+
public class HDF5ReferenceException extends HDF5LibraryException {
/**
* Constructs an <code>HDF5ReferenceException</code> with no specified