Class HDFException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hdf.hdflib.HDFException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HDFJavaException,HDFLibraryException
The class HDFException returns errors from the HDF library.
Two sub-classes of HDFException are defined:
- HDFLibraryException -- errors raised the HDF library code
- HDFJavaException -- errors raised the HDF Java wrapper code
These exceptions are sub-classed to represent specific error conditions, as needed.
The only specific exception currently defined is HDFNotImplementedException, indicating a function that is part of the HDF API, but which cannot or will not be implemented for Java.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHDFException(int err) Constructs anHDFExceptionwith the specified error number.HDFException(String message) Constructs anHDFExceptionwith the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the detail message of this exceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
OutOfMemoryMessage
- See Also:
-
HDFExceptionMessage
- See Also:
-
HDFMessage
- See Also:
-
HDFerror
protected int HDFerrorthe specified error number of this exception -
detailMessage
the specified detail message of this exception
-
-
Constructor Details
-
HDFException
public HDFException() -
HDFException
Constructs anHDFExceptionwith the specified detail message.- Parameters:
message- the detail message.
-
HDFException
public HDFException(int err) Constructs anHDFExceptionwith the specified error number.- Parameters:
err- the error number.
-
-
Method Details
-
getMessage
Returns the detail message of this exception- Overrides:
getMessagein classThrowable- Returns:
- the detail message or
nullif this object does not have a detail message.
-