cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject svn commit: r290410 - in /cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor: CategoryNodeBuilder.java sitemap/FlowNodeBuilder.java
Date Tue, 20 Sep 2005 10:13:28 GMT
Author: sylvain
Date: Tue Sep 20 03:13:19 2005
New Revision: 290410

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

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

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java?rev=290410&r1=290409&r2=290410&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java
(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java
Tue Sep 20 03:13:19 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/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java?rev=290410&r1=290409&r2=290410&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java
(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java
Tue Sep 20 03:13:19 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);
 



Mime
View raw message