Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/MultiLayerFillSymbolReader.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 | b41fcf268827 |
children | 9ea64427ac7e |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MultiLayerFillSymbolReader.java Thu May 26 17:29:09 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/MultiLayerFillSymbolReader.java Thu May 26 18:11:29 2011 +0200 @@ -87,26 +87,20 @@ * @return The XML node. */ public Element read() - throws IOException { + throws Exception { logger.debug("read()"); for(int i = 0; i < symbol.getLayerCount(); i++) { - try { - ISymbol sym = (ISymbol)symbol.getLayer(i); + ISymbol sym = (ISymbol)symbol.getLayer(i); - if(sym instanceof SimpleFillSymbol) { - ISymbolReader sreader = new SimpleFillSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else { - logger.debug("The type of " + sym.getClass().toString() + - " is not implemented!"); - } + if(sym instanceof SimpleFillSymbol) { + ISymbolReader sreader = new SimpleFillSymbolReader(sym); + sreader.setParent(renderer); + sreader.setUtil(util); + sreader.read(); } - catch(Exception e) { - e.printStackTrace(); - return null; + else { + logger.debug("The type of " + sym.getClass().toString() + + " is not implemented!"); } } return renderer;