Class HDFLibraryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hdf.hdflib.HDFException
hdf.hdflib.HDFLibraryException
- All Implemented Interfaces:
Serializable
The class HDFException returns errors raised by the HDF library.
In principle, this includes any and all errors possible from the HDF library. However, most error conditions are not yet detected in this version of the Java interface. This will be added in future releases. The only HDF library error currently raised are errors in Hopen, such as ``file not found''.
- See Also:
-
Field Summary
Fields inherited from class hdf.hdflib.HDFException
detailMessage, HDFerror, HDFExceptionMessage, HDFMessage, OutOfMemoryMessage -
Constructor Summary
ConstructorsConstructorDescriptionConstructs anHDFLibraryExceptionwith no specified detail message.HDFLibraryException(int err) Constructs anHDFLibraryExceptionwith the specified detail error number.Constructs anHDFLibraryExceptionwith the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the detail message of this exceptionvoidPrints thisHDFLibraryException, the HDF Library error stack, and and the Java stack trace to the standard error stream.voidPrints thisHDFLibraryExceptionthe HDF Library error stack, and and the Java stack trace to the specified print stream.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HDFLibraryException
public HDFLibraryException()Constructs anHDFLibraryExceptionwith no specified detail message. -
HDFLibraryException
Constructs anHDFLibraryExceptionwith the specified detail message.- Parameters:
s- the detail message.
-
HDFLibraryException
public HDFLibraryException(int err) Constructs anHDFLibraryExceptionwith the specified detail error number.- Parameters:
err- the detail error number.
-
-
Method Details
-
getMessage
Description copied from class:HDFExceptionReturns the detail message of this exception- Overrides:
getMessagein classHDFException- Returns:
- the detail message or
nullif this object does not have a detail message.
-
printStackTrace
public void printStackTrace()Prints thisHDFLibraryException, the HDF Library error stack, and and the Java stack trace to the standard error stream.- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints thisHDFLibraryExceptionthe HDF Library error stack, and and the Java stack trace to the specified print stream.- Parameters:
f- the file print stream.
-