diff src/java/de/intevation/mxd/writer/MapScriptWriter.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 3ca2ec55fb3b
children 0f5819732288
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jun 16 14:13:39 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jun 16 14:49:45 2011 +0200
@@ -56,8 +56,7 @@
      *
      * @return Currently always true.
      */
-    public boolean write(Document doc)
-    throws Exception {
+    public boolean write(Document doc) {
         logger.debug("write()");
         this.root = doc;
 
@@ -73,6 +72,7 @@
         //Save the map.
         mapObj cloneMap = map.cloneMap();
         cloneMap.save(mapFilename);
+        logger.info("Mapfile successfully created.");
         return true;
     }
 
@@ -133,8 +133,7 @@
     /**
      * Create layer objects and set the attributes.
      */
-    private void writeLayer()
-    throws Exception {
+    private void writeLayer() {
         logger.debug("writeLayer()");
         Element mapNode = (Element)XMLUtils.xpath(
             root,
@@ -198,8 +197,7 @@
      * @param layer        Mapscript layer object.
      * @param layerElement Dom element containing the class attributes.
      */
-    private void writeClass(layerObj layer, Element layerElement)
-    throws Exception {
+    private void writeClass(layerObj layer, Element layerElement) {
         logger.debug("writeClass(layerObj, Element)");
         //Get all renderer elements (renderer in arcgis equals class in the
         //mapfile.)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)