diff gwt-client/src/main/java/org/dive4elements/river/client/server/SedimentLoadInfoServiceImpl.java @ 8712:582e970115b6

(issue1448) Localize SedimentLoadInfo Exceptions shown in the client
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 24 Apr 2015 17:18:48 +0200
parents f54c4b858213
children 5e38e2924c07
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/SedimentLoadInfoServiceImpl.java	Fri Apr 24 17:17:56 2015 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/SedimentLoadInfoServiceImpl.java	Fri Apr 24 17:18:48 2015 +0200
@@ -40,6 +40,9 @@
     public static final String ERROR_NO_SEDIMENTLOADINFO_FOUND =
         "error_no_sedimentloadinfo_found";
 
+    public static final String ERROR_NO_SEDIMENTLOADINFO_DATA =
+        "error_no_sedimentloadinfo_data";
+
     @Override
     public SedimentLoadInfoObject[] getSedimentLoadInfo(
         String locale,
@@ -116,7 +119,7 @@
 
         if (list == null || list.getLength() == 0) {
             log.warn("No sedimentload info found.");
-            throw new ServerException(ERROR_NO_SEDIMENTLOADINFO_FOUND);
+            throw new ServerException(ERROR_NO_SEDIMENTLOADINFO_DATA);
         }
 
         int num = list.getLength();

http://dive4elements.wald.intevation.org