Class HDFException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HDFJavaException, HDFLibraryException

public class HDFException extends RuntimeException

The class HDFException returns errors from the HDF library.

Two sub-classes of HDFException are defined:

  1. HDFLibraryException -- errors raised the HDF library code
  2. 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 Details

    • OutOfMemoryMessage

      public static final String OutOfMemoryMessage
      See Also:
    • HDFExceptionMessage

      public static final String HDFExceptionMessage
      See Also:
    • HDFMessage

      public static final String HDFMessage
      See Also:
    • HDFerror

      protected int HDFerror
      the specified error number of this exception
    • detailMessage

      protected String detailMessage
      the specified detail message of this exception
  • Constructor Details

    • HDFException

      public HDFException()
    • HDFException

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

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

    • getMessage

      public String getMessage()
      Returns the detail message of this exception
      Overrides:
      getMessage in class Throwable
      Returns:
      the detail message or null if this object does not have a detail message.