Class HPSFException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.poi.hpsf.HPSFException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MarkUnsupportedException, NoPropertySetStreamException, UnexpectedPropertySetTypeException, VariantTypeException

public class HPSFException extends Exception

This exception is the superclass of all other checked exceptions thrown in this package. It supports a nested "reason" throwable, i.e. an exception that caused this one to be thrown.

See Also:
  • Constructor Details

    • HPSFException

      public HPSFException()

      Creates an HPSFException.

    • HPSFException

      public HPSFException(String msg)

      Creates an HPSFException with a message string.

      Parameters:
      msg - The message string.
    • HPSFException

      public HPSFException(Throwable reason)

      Creates a new HPSFException with a reason.

      Parameters:
      reason - The reason, i.e. a throwable that indirectly caused this exception.
    • HPSFException

      public HPSFException(String msg, Throwable reason)

      Creates an HPSFException with a message string and a reason.

      Parameters:
      msg - The message string.
      reason - The reason, i.e. a throwable that indirectly caused this exception.
  • Method Details

    • getReason

      public Throwable getReason()

      Returns the Throwable that caused this exception to be thrown or null if there was no such Throwable.

      Returns:
      The reason