aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/XMLObj.java
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-28 10:00:25 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-28 10:00:25 +0000
commitb0e76bca6ec366023f5f98d8e07aa77dbfabafe1 (patch)
treeffd62fd750c33c6083daad85feb38a5dbd709de8 /src/java/org/apache/fop/fo/XMLObj.java
parent13fdba00ab86701f8e0b4057ecc5bc36375c8ee0 (diff)
downloadxmlgraphics-fop-b0e76bca6ec366023f5f98d8e07aa77dbfabafe1.tar.gz
xmlgraphics-fop-b0e76bca6ec366023f5f98d8e07aa77dbfabafe1.zip
New exception hierarchy rooted in SAXException and throw clauses on
property parsing and retrieval. PR: 31899 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198106 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/XMLObj.java')
-rw-r--r--src/java/org/apache/fop/fo/XMLObj.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/fo/XMLObj.java b/src/java/org/apache/fop/fo/XMLObj.java
index 3ff83ee68..244f17a54 100644
--- a/src/java/org/apache/fop/fo/XMLObj.java
+++ b/src/java/org/apache/fop/fo/XMLObj.java
@@ -22,12 +22,13 @@ package org.apache.fop.fo;
import java.awt.geom.Point2D;
import java.util.HashMap;
+import javax.xml.parsers.DocumentBuilderFactory;
+
+import org.apache.fop.apps.FOPException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.xml.sax.Attributes;
import org.xml.sax.Locator;
-import org.xml.sax.SAXParseException;
-import javax.xml.parsers.DocumentBuilderFactory;
/**
* Abstract class modelling generic, non-XSL-FO XML objects. Such objects are
@@ -59,7 +60,7 @@ public abstract class XMLObj extends FONode {
* here, blocks XSL FO's from having non-FO parents.
*/
protected void validateChildNode(Locator loc, String nsURI, String localName)
- throws SAXParseException {
+ throws ValidationException {
if (nsURI == FO_URI) {
invalidChildError(loc, nsURI, localName);
}
@@ -69,7 +70,7 @@ public abstract class XMLObj extends FONode {
* @see org.apache.fop.fo.FONode#processNode
*/
public void processNode(String elementName, Locator locator,
- Attributes attlist, PropertyList propertyList) throws SAXParseException {
+ Attributes attlist, PropertyList propertyList) throws FOPException {
setLocator(locator);
name = elementName;
attr = attlist;