Class OfficeDocumentException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class OfficeDocumentException
    extends java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OfficeDocumentException​(java.lang.Exception e)
      Constructor, creates exception with the message corresponding to the message value of the provided exception.
      OfficeDocumentException​(java.lang.String s)
      Constructor, creates exception with provided message.
      OfficeDocumentException​(org.xml.sax.SAXException e)
      Constructor, capturing additional information from the SAXException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns the message value for the 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
    • Constructor Detail

      • OfficeDocumentException

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

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

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

      • getMessage

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