Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/GdbRasterCatalogLayerReader.java @ 74:7eba97e8201b
Catch all exceptions in the MXDReader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 26 May 2011 18:11:29 +0200 |
parents | ef7ca23c4233 |
children | 59e06c405a9a |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/GdbRasterCatalogLayerReader.java Thu May 26 17:29:09 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/GdbRasterCatalogLayerReader.java Thu May 26 18:11:29 2011 +0200 @@ -58,16 +58,9 @@ * @return The layer XML element. */ public Element read() - throws IOException { + throws Exception { logger.debug("read()"); - Element layerElement; - try { - layerElement = util.addLayer(); - } - catch(Exception e) { - e.printStackTrace(); - return null; - } + Element layerElement = util.addLayer(); layerElement.setAttribute("name", layer.getName()); layerElement.setAttribute("min_scale",