comparison src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.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 5c5ef5768893
children 83932f18dddc
comparison
equal deleted inserted replaced
73:acbe36fb45e0 74:7eba97e8201b
81 * Reads the symbol attributes. 81 * Reads the symbol attributes.
82 * 82 *
83 * @return The XML node. 83 * @return The XML node.
84 */ 84 */
85 public Element read() 85 public Element read()
86 throws IOException { 86 throws Exception {
87 logger.debug("read()"); 87 logger.debug("read()");
88 Element symbolElement; 88 Element symbolElement = util.addSymbol(renderer);
89 try {
90 symbolElement = util.addSymbol(renderer);
91 }
92 catch(Exception e) {
93 e.printStackTrace();
94 return null;
95 }
96 89
97 IColor c = symbol.getColor(); 90 IColor c = symbol.getColor();
98 symbolElement.setAttribute( 91 symbolElement.setAttribute(
99 "angle", 92 "angle",
100 String.valueOf(symbol.getAngle())); 93 String.valueOf(symbol.getAngle()));
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)