changeset 325:7a0907742cc0

Changed the error key that is written to the result document of the feed operation. flys-artifacts/trunk@1719 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 18 Apr 2011 13:23:12 +0000
parents cd9e397cc2a8
children 07eba6d3b4a5
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Apr 18 13:21:52 2011 +0000
+++ b/flys-artifacts/ChangeLog	Mon Apr 18 13:23:12 2011 +0000
@@ -1,3 +1,9 @@
+2011-04-18  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java: Changed
+	  the error key that is thrown if no input data was found so that the key
+	  is usable for GWT's i18n mechanism.
+
 2011-04-18  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/states/RiverSelect.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java	Mon Apr 18 13:21:52 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java	Mon Apr 18 13:23:12 2011 +0000
@@ -327,7 +327,7 @@
     throws IllegalArgumentException
     {
         if (feed == null || xpath == null || xpath.length() == 0) {
-            throw new IllegalArgumentException("feed.no.input.data");
+            throw new IllegalArgumentException("error_feed_no_data");
         }
 
         NodeList nodes = (NodeList) XMLUtils.xpath(
@@ -337,7 +337,7 @@
             ArtifactNamespaceContext.INSTANCE);
 
         if (nodes == null || nodes.getLength() == 0) {
-            throw new IllegalArgumentException("feed.no.input.data");
+            throw new IllegalArgumentException("error_feed_no_data");
         }
 
         int count = nodes.getLength();

http://dive4elements.wald.intevation.org