Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/GdbRasterCatalogLayerReader.java @ 118:39957898c694
Improved top level exception handling and logging.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 16 Jun 2011 14:06:09 +0200 |
parents | 6c3d880db7c5 |
children | a4ab239509f1 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/GdbRasterCatalogLayerReader.java Thu Jun 16 12:05:34 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/GdbRasterCatalogLayerReader.java Thu Jun 16 14:06:09 2011 +0200 @@ -55,7 +55,8 @@ * * @return The layer XML element. */ - public Element read() { + public Element read() + throws IOException { logger.debug("read()"); Element layerElement; @@ -66,7 +67,9 @@ logger.error( "Could not create DOM element for layer." + "Stopped reading layer."); - return null; + throw new IOException( + this.getClass()+toString() + + "Error creating dom element"); } try {