writer2latex.xmerge

Class OfficeDocumentException


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

Constructor Summary

OfficeDocumentException(Exception e)
Constructor, creates exception with the message corresponding to the message value of the provided exception.
OfficeDocumentException(SAXException e)
Constructor, capturing additional information from the SAXException.
OfficeDocumentException(String s)
Constructor, creates exception with provided message.

Method Summary

String
getMessage()
Returns the message value for the Exception.

Constructor Details

OfficeDocumentException

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

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.

Method Details

getMessage

public String getMessage()
Returns the message value for the Exception.
Returns:
The message value for the Exception.