diff options
author | Glen Mazza <gmazza@apache.org> | 2004-06-08 22:16:52 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-06-08 22:16:52 +0000 |
commit | a0d68dd48a5241a2f6aa2a6ab5c91a08888d6962 (patch) | |
tree | e24c13a666ff8c2a12253119dcc753975042da65 /src/java/org/apache/fop/fo/pagination/PageSequence.java | |
parent | 5fea6c429e56401a584204023b8e990cf6b99263 (diff) | |
download | xmlgraphics-fop-a0d68dd48a5241a2f6aa2a6ab5c91a08888d6962.tar.gz xmlgraphics-fop-a0d68dd48a5241a2f6aa2a6ab5c91a08888d6962.zip |
Better error-handling messages added for incorrect LayoutMasterSets.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197694 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination/PageSequence.java')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/PageSequence.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/PageSequence.java b/src/java/org/apache/fop/fo/pagination/PageSequence.java index 5bc84706f..92a389aa2 100644 --- a/src/java/org/apache/fop/fo/pagination/PageSequence.java +++ b/src/java/org/apache/fop/fo/pagination/PageSequence.java @@ -138,12 +138,16 @@ public class PageSequence extends FObj { this.root = (Root)parent; // this.root.addPageSequence(this); } else { - throw new FOPException("page-sequence must be child of root, not " + throw new FOPException("Error: page-sequence must be child of root, not " + parent.getName()); } layoutMasterSet = root.getLayoutMasterSet(); - + + if (layoutMasterSet == null) { + throw new FOPException("Error: fo:layout-master-set undefined for this document"); + } + // best time to run some checks on LayoutMasterSet layoutMasterSet.checkRegionNames(); |