Class HDFLibraryException

All Implemented Interfaces:
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:
  • Constructor Details

    • HDFLibraryException

      public HDFLibraryException()
      Constructs an HDFLibraryException with no specified detail message.
    • HDFLibraryException

      public HDFLibraryException(String s)
      Constructs an HDFLibraryException with the specified detail message.
      Parameters:
      s - the detail message.
    • HDFLibraryException

      public HDFLibraryException(int err)
      Constructs an HDFLibraryException with the specified detail error number.
      Parameters:
      err - the detail error number.
  • Method Details

    • getMessage

      public String getMessage()
      Description copied from class: HDFException
      Returns the detail message of this exception
      Overrides:
      getMessage in class HDFException
      Returns:
      the detail message or null if this object does not have a detail message.
    • printStackTrace

      public void printStackTrace()
      Prints this HDFLibraryException, the HDF Library error stack, and and the Java stack trace to the standard error stream.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(File f)
      Prints this HDFLibraryException the HDF Library error stack, and and the Java stack trace to the specified print stream.
      Parameters:
      f - the file print stream.