diff src/java/de/intevation/mxd/writer/SymbolWriter.java @ 120:11d63bf00326

Changed exception handling and logging in writer classes.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 16 Jun 2011 14:49:45 +0200
parents 18e4f143896b
children 8f30f7e802d6
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/SymbolWriter.java	Thu Jun 16 14:13:39 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/SymbolWriter.java	Thu Jun 16 14:49:45 2011 +0200
@@ -39,8 +39,7 @@
     /**
      * Write the content.
      */
-    public boolean write(Element symbolElement)
-    throws Exception {
+    public boolean write(Element symbolElement) {
         logger.debug("write(Element)");
         symbolSetObj symbolSet = map.getSymbolset();
 
@@ -65,7 +64,13 @@
             return false;
         }
 
-        saveSymbolSet(symbolSet);
+        try {
+            saveSymbolSet(symbolSet);
+        }
+        catch(Exception e) {
+            logger.error("Error saving symbol set.");
+            return false;
+        }
 
         return true;
     }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)