From 33e6293e88e33dfba73f66e7afee63323f884119 Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Tue, 27 Jul 2004 05:12:41 +0000 Subject: Switch from IllegalArgumentException to SAXParseException for errors found in the input FO. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197843 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/pagination/Flow.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/java/org/apache/fop/fo/pagination/Flow.java') diff --git a/src/java/org/apache/fop/fo/pagination/Flow.java b/src/java/org/apache/fop/fo/pagination/Flow.java index ccfab4363..400ff45dc 100644 --- a/src/java/org/apache/fop/fo/pagination/Flow.java +++ b/src/java/org/apache/fop/fo/pagination/Flow.java @@ -24,6 +24,7 @@ import java.util.ArrayList; // XML import org.xml.sax.Attributes; import org.xml.sax.Locator; +import org.xml.sax.SAXParseException; // FOP import org.apache.fop.fo.FONode; @@ -73,7 +74,8 @@ public class Flow extends FObj { * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String) * XSL/FOP Content Model: marker* (%block;)+ */ - protected void validateChildNode(Locator loc, String nsURI, String localName) { + protected void validateChildNode(Locator loc, String nsURI, String localName) + throws SAXParseException { if (nsURI == FOElementMapping.URI && localName.equals("marker")) { if (blockItemFound) { nodesOutOfOrderError(loc, "fo:marker", "(%block;)"); @@ -90,7 +92,7 @@ public class Flow extends FObj { * StructureRenderer that we are at the end of the flow. * @see org.apache.fop.fo.FONode#end */ - protected void endOfNode() { + protected void endOfNode() throws SAXParseException { if (!blockItemFound) { missingChildElementError("marker* (%block;)+"); } -- cgit v1.2.3