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''.
detailMessage, HDFerror, HDFExceptionMessage, HDFMessage, OutOfMemoryMessage
Constructor and Description |
---|
HDFLibraryException()
Constructs an
HDFLibraryException with no specified detail
message. |
HDFLibraryException(int err)
Constructs an
HDFLibraryException with the specified detail
error number. |
HDFLibraryException(java.lang.String s)
Constructs an
HDFLibraryException with the specified detail
message. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Returns the detail message of this exception
|
void |
printStackTrace()
Prints this
HDFLibraryException , the HDF Library error stack, and and the Java stack
trace to the standard error stream. |
void |
printStackTrace(java.io.File f)
Prints this
HDFLibraryException the HDF Library error stack, and and the Java stack
trace to the specified print stream. |
public HDFLibraryException()
HDFLibraryException
with no specified detail
message.public HDFLibraryException(java.lang.String s)
HDFLibraryException
with the specified detail
message.s
- the detail message.public HDFLibraryException(int err)
HDFLibraryException
with the specified detail
error number.err
- the detail error number.public java.lang.String getMessage()
HDFException
getMessage
in class HDFException
null
if this object does not
have a detail message.public void printStackTrace()
HDFLibraryException
, the HDF 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)
HDFLibraryException
the HDF Library error stack, and and the Java stack
trace to the specified print stream.f
- the file print stream.