aboutsummaryrefslogtreecommitdiffstats
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/mathml/src/org/apache/fop/mathml/MathMLElement.java4
-rw-r--r--examples/plan/src/org/apache/fop/plan/PlanElement.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java b/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java
index 5167aa0f4..025ed6020 100644
--- a/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java
+++ b/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java
@@ -22,6 +22,7 @@ import java.awt.Color;
import java.awt.Dimension;
import java.awt.geom.Point2D;
+import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.FONode;
import org.w3c.dom.DOMImplementation;
import org.w3c.dom.Document;
@@ -30,7 +31,6 @@ import org.w3c.dom.Node;
import org.xml.sax.Attributes;
import org.xml.sax.Locator;
-import org.xml.sax.SAXParseException;
import org.apache.batik.svggen.SVGGraphics2D;
import org.apache.batik.dom.svg.SVGDOMImplementation;
@@ -59,7 +59,7 @@ public class MathMLElement extends MathMLObj {
* @see org.apache.fop.fo.FONode#processNode
*/
public void processNode(String elementName, Locator locator,
- Attributes attlist) throws SAXParseException {
+ Attributes attlist) throws FOPException {
super.processNode(elementName, locator, attlist);
createBasicDocument();
}
diff --git a/examples/plan/src/org/apache/fop/plan/PlanElement.java b/examples/plan/src/org/apache/fop/plan/PlanElement.java
index bdf6ec7fa..7bec2861d 100644
--- a/examples/plan/src/org/apache/fop/plan/PlanElement.java
+++ b/examples/plan/src/org/apache/fop/plan/PlanElement.java
@@ -20,13 +20,13 @@ package org.apache.fop.plan;
import java.awt.geom.Point2D;
+import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropertyList;
import org.w3c.dom.Document;
import org.xml.sax.Attributes;
import org.xml.sax.Locator;
-import org.xml.sax.SAXParseException;
/**
* This class defines the plan element.
@@ -50,7 +50,7 @@ public class PlanElement extends PlanObj {
*/
public void processNode(String elementName, Locator locator,
Attributes attlist, PropertyList propertyList)
- throws SAXParseException
+ throws FOPException
{
super.processNode(elementName, locator, attlist, propertyList);
createBasicDocument();