Package hdf.hdflib

Class HDFException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    HDFJavaException, HDFLibraryException

    public class HDFException
    extends java.lang.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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String detailMessage
      the specified detail message of this exception
      protected int HDFerror
      the specified error number of this exception
      static java.lang.String HDFExceptionMessage  
      static java.lang.String HDFMessage  
      static java.lang.String OutOfMemoryMessage  
    • Constructor Summary

      Constructors 
      Constructor Description
      HDFException()  
      HDFException​(int err)
      Constructs an HDFException with the specified error number.
      HDFException​(java.lang.String message)
      Constructs an HDFException 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 exception
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • OutOfMemoryMessage

        public static final java.lang.String OutOfMemoryMessage
        See Also:
        Constant Field Values
      • HDFExceptionMessage

        public static final java.lang.String HDFExceptionMessage
        See Also:
        Constant Field Values
      • HDFerror

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

        protected java.lang.String detailMessage
        the specified detail message of this exception
    • Constructor Detail

      • HDFException

        public HDFException()
      • HDFException

        public HDFException​(java.lang.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 Detail

      • getMessage

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