public class HDF5LibraryException extends HDF5Exception
The class HDF5LibraryException returns errors raised by the HDF5 library.
Each major error code from the HDF-5 Library is represented by a sub-class of this class, and by default the 'detailedMessage' is set according to the minor error code from the HDF-5 Library.
For major and minor error codes, see H5Epublic.h in the HDF-5 library.
detailMessage
Constructor and Description |
---|
HDF5LibraryException()
Constructs an
HDF5LibraryException with no specified detail
message. |
HDF5LibraryException(java.lang.String s)
Constructs an
HDF5LibraryException with the specified detail
message. |
Modifier and Type | Method and Description |
---|---|
int |
getMajorErrorNumber()
Get the major error number of the first error on the HDF5 library error
stack.
|
java.lang.String |
getMinorError(int err_code)
Return a error message for the minor error number.
|
int |
getMinorErrorNumber()
Get the minor error number of the first error on the HDF5 library error
stack.
|
void |
printStackTrace()
Prints this
HDF5LibraryException , the HDF-5 Library error
stack, and and the Java stack trace to the standard error stream. |
void |
printStackTrace(java.io.File f)
Prints this
HDF5LibraryException the HDF-5 Library error
stack, and and the Java stack trace to the specified print stream. |
getMessage
public HDF5LibraryException()
HDF5LibraryException
with no specified detail
message.public HDF5LibraryException(java.lang.String s)
HDF5LibraryException
with the specified detail
message.s
- the detail message.public int getMajorErrorNumber()
public int getMinorErrorNumber()
public java.lang.String getMinorError(int err_code)
These messages come from H5Epublic.h.
err_code
- the error codepublic void printStackTrace()
HDF5LibraryException
, the HDF-5 Library error
stack, and and the Java stack trace to the standard error stream.printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.File f)
HDF5LibraryException
the HDF-5 Library error
stack, and and the Java stack trace to the specified print stream.f
- the file print stream.