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