19package org.openoffice.xmerge.converter.xml;
21import java.io.IOException;
23import org.xml.sax.SAXException;
24import org.xml.sax.SAXParseException;
43 if (e.getException() !=
null) {
44 initCause(e.getException());
51 StringBuffer message =
new StringBuffer();
52 if (e instanceof SAXParseException) {
63 SAXParseException spe = (SAXParseException) e;
64 message.append(msgParseError);
66 message.append(msgLine);
68 message.append(spe.getLineNumber());
70 message.append(msgColumn);
72 message.append(spe.getColumnNumber());
74 message.append(msgSystemId);
76 message.append(spe.getSystemId());
78 message.append(msgPublicId);
80 message.append(spe.getPublicId());
87 message.append(
ex.getMessage());
89 return message.toString();
108 super(e.getMessage());
Used by OfficeDocument to encapsulate exceptions.
OfficeDocumentException(Exception e)
Constructor, creates exception with the message corresponding to the message value of the provided ex...
OfficeDocumentException(String s)
Constructor, creates exception with provided message.
OfficeDocumentException(SAXException e)
Constructor, capturing additional information from the SAXException.
static String constructMessage(SAXException e)
Provides a singleton resource class for converter messages.
static synchronized Resources getInstance()
This method returns the singleton instance of this class.
String getString(String key)
This method returns the corresponding String given the key.
Provides general purpose utilities.
Provides interfaces for converting between two Document formats, and supports a "merge" interface for...