diff src/java/de/intevation/mxd/reader/MXDReader.java @ 121:9f74f4d36822

Set default values and improved logging and exception handling for map reader.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 16 Jun 2011 18:36:48 +0200
parents 39957898c694
children 6b80d2c7536e
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MXDReader.java	Thu Jun 16 14:49:45 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/MXDReader.java	Thu Jun 16 18:36:48 2011 +0200
@@ -103,7 +103,7 @@
      * Read the MXD file content.
      */
     public boolean read()
-    throws IOException {
+    throws Exception {
         logger.debug("read()");
         if(filename == "") {
             throw new IOException("Please set filename!");
@@ -119,13 +119,12 @@
 
             }
             catch(Exception e) {
-                e.printStackTrace();
+                throw e;
             }
 
             for(int i = 0; i < map.getLayerCount();i++) {
                 ILayer layer = map.getLayer(i);
                 try {
-                    //TODO Implement wrapper for renderer reader
                     if (layer instanceof FeatureLayer) {
                         FeatureLayerReader lr = new FeatureLayerReader(layer);
                         lr.setUtil(util);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)