You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by sy...@apache.org on 2005/09/20 12:13:03 UTC

svn commit: r290409 - in /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor: CategoryNodeBuilder.java sitemap/FlowNodeBuilder.java

Author: sylvain
Date: Tue Sep 20 03:12:53 2005
New Revision: 290409

URL: http://svn.apache.org/viewcvs?rev=290409&view=rev
Log:
Add location information to exceptions

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java?rev=290409&r1=290408&r2=290409&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java Tue Sep 20 03:12:53 2005
@@ -73,7 +73,9 @@
 
         // Register node to allow lookup by other nodes
         if ( !this.treeBuilder.registerNode(PREFIX + this.name, node) ) {
-            throw new ConfigurationException("There can only be one category with the name: " + this.name);
+            throw new ConfigurationException("Only one <map:" + this.name +
+                    "> is allowed in a sitemap. Another one is declared at " +
+                    config.getLocation());
         }
 
         return node;

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java?rev=290409&r1=290408&r2=290409&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java Tue Sep 20 03:12:53 2005
@@ -36,7 +36,8 @@
         FlowNode node = new FlowNode(language);
 
         if ( !this.treeBuilder.registerNode("flow", node) ) {
-            throw new ConfigurationException("Only one flow node per sitemap allowed.");
+            throw new ConfigurationException("Only one <map:flow> is allowed in a sitemap. Another one is declared at " +
+                    config.getLocation());
         }
         this.treeBuilder.setupNode(node, config);