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.
Constructor and Description |
---|
HDF5LibraryException(int majorErrorNumber,
java.lang.String majorErrorMessage,
int minorErrorNumber,
java.lang.String minorErrorMessage)
Constructs an
HDF5LibraryException with the specified detail message. |
HDF5LibraryException(java.lang.String errorMessage)
Constructs an
HDF5LibraryException with the specified detail message. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHDF5ErrorStackAsString()
Returns the error stack from the HDF5 library as a string.
|
java.lang.String |
getMajorError()
Return a error message for the major error number of this exception.
|
int |
getMajorErrorNumber()
Get the major error number of the first error on the HDF5 library error stack.
|
java.lang.String |
getMessage()
Returns the detail message of this exception
|
java.lang.String |
getMinorError()
Return a error message for the minor error number of this exception.
|
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. |
public HDF5LibraryException(int majorErrorNumber, java.lang.String majorErrorMessage, int minorErrorNumber, java.lang.String minorErrorMessage)
HDF5LibraryException
with the specified detail message.majorErrorNumber
- The major error number of the HDF5 library.majorErrorMessage
- The error message for the major error number of the HDF5 library.minorErrorNumber
- The minor error number of the HDF5 library.minorErrorMessage
- The error message for the minor error number of the HDF5 library.public HDF5LibraryException(java.lang.String errorMessage)
HDF5LibraryException
with the specified detail message.errorMessage
- The error message for the minor error number of the HDF5 library.public java.lang.String getMessage()
HDF5Exception
getMessage
in class HDF5Exception
null
if this object does not have a detail message.public int getMajorErrorNumber()
public java.lang.String getMajorError()
These messages come from H5Epublic.h.
public int getMinorErrorNumber()
public java.lang.String getMinorError()
These messages come from H5Epublic.h.
public java.lang.String getHDF5ErrorStackAsString()
public 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.