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