Class OfficeDocumentException

All Implemented Interfaces:
Serializable

public final class OfficeDocumentException extends IOException
Used by OfficeDocument to encapsulate exceptions. It will add more details to the message string if it is of type SAXParseException.
Author:
Herbie Ong
See Also:
  • Constructor Details

    • OfficeDocumentException

      public OfficeDocumentException(SAXException e)
      Constructor, capturing additional information from the SAXException.
      Parameters:
      e - The SAXException.
    • OfficeDocumentException

      public OfficeDocumentException(String s)
      Constructor, creates exception with provided message.
      Parameters:
      s - Message value for the exception.
    • OfficeDocumentException

      public OfficeDocumentException(Exception e)
      Constructor, creates exception with the message corresponding to the message value of the provided exception.
      Parameters:
      e - The Exception.
  • Method Details

    • getMessage

      public String getMessage()
      Returns the message value for the Exception.
      Overrides:
      getMessage in class Throwable
      Returns:
      The message value for the Exception.