changeset 1332:ab2b1a4a9ead

Donate own error for failcase of remove-artifact. flys-client/trunk@2977 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 17 Oct 2011 09:37:27 +0000
parents aa2313e0f18d
children 1627a28c4504
files flys-client/src/main/java/de/intevation/flys/client/server/CollectionHelper.java
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/CollectionHelper.java	Mon Oct 17 09:18:22 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/CollectionHelper.java	Mon Oct 17 09:37:27 2011 +0000
@@ -50,6 +50,8 @@
 
     public static final String ERROR_ADD_ARTIFACT = "error_add_artifact";
 
+    public static final String ERROR_REMOVE_ARTIFACT = "error_remove_artifact";
+
     public static final String XPATH_FACETS = "art:facets/art:facet";
 
     public static final String XPATH_LOADED_RECOMMENDATIONS =
@@ -705,7 +707,7 @@
             Collection c = CollectionHelper.parseCollection(response);
 
             if (c == null) {
-                throw new ServerException(ERROR_ADD_ARTIFACT);
+                throw new ServerException(ERROR_REMOVE_ARTIFACT);
             }
 
             return c;
@@ -716,8 +718,7 @@
         catch (Exception e) {
             e.printStackTrace();
         }
-        // TODO other err
-        throw new ServerException(ERROR_ADD_ARTIFACT);
+        throw new ServerException(ERROR_REMOVE_ARTIFACT);
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org