comparison src/java/de/intevation/mxd/reader/HashLineSymbolReader.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 83932f18dddc
comparison
equal deleted inserted replaced
73:acbe36fb45e0 74:7eba97e8201b
92 * @return The XML node. 92 * @return The XML node.
93 */ 93 */
94 public Element read() 94 public Element read()
95 throws IOException { 95 throws IOException {
96 logger.debug("read()"); 96 logger.debug("read()");
97 Element symbolElement; 97 Element symbolElement = util.addSymbol(renderer);
98 try {
99 symbolElement = util.addSymbol(renderer);
100 }
101 catch(Exception e) {
102 e.printStackTrace();
103 return null;
104 }
105 98
106 symbolElement.setAttribute("name", symbol.getNameString()); 99 symbolElement.setAttribute("name", symbol.getNameString());
107 symbolElement.setAttribute("style", "line"); 100 symbolElement.setAttribute("style", "line");
108 if(symbol.getColor() instanceof IRgbColor) { 101 if(symbol.getColor() instanceof IRgbColor) {
109 IRgbColor color = (IRgbColor)symbol.getColor(); 102 IRgbColor color = (IRgbColor)symbol.getColor();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)