Package hdf.hdflib
Class HDFLibraryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- hdf.hdflib.HDFException
-
- hdf.hdflib.HDFLibraryException
-
- All Implemented Interfaces:
java.io.Serializable
public class HDFLibraryException extends HDFException
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class hdf.hdflib.HDFException
detailMessage, HDFerror, HDFExceptionMessage, HDFMessage, OutOfMemoryMessage
-
-
Constructor Summary
Constructors Constructor Description HDFLibraryException()
Constructs anHDFLibraryException
with no specified detail message.HDFLibraryException(int err)
Constructs anHDFLibraryException
with the specified detail error number.HDFLibraryException(java.lang.String s)
Constructs anHDFLibraryException
with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
Returns the detail message of this exceptionvoid
printStackTrace()
Prints thisHDFLibraryException
, the HDF Library error stack, and and the Java stack trace to the standard error stream.void
printStackTrace(java.io.File f)
Prints thisHDFLibraryException
the HDF Library error stack, and and the Java stack trace to the specified print stream.
-
-
-
Constructor Detail
-
HDFLibraryException
public HDFLibraryException()
Constructs anHDFLibraryException
with no specified detail message.
-
HDFLibraryException
public HDFLibraryException(java.lang.String s)
Constructs anHDFLibraryException
with the specified detail message.- Parameters:
s
- the detail message.
-
HDFLibraryException
public HDFLibraryException(int err)
Constructs anHDFLibraryException
with the specified detail error number.- Parameters:
err
- the detail error number.
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Description copied from class:HDFException
Returns the detail message of this exception- Overrides:
getMessage
in classHDFException
- Returns:
- the detail message or
null
if 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:
printStackTrace
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.File f)
Prints thisHDFLibraryException
the HDF Library error stack, and and the Java stack trace to the specified print stream.- Parameters:
f
- the file print stream.
-
-