comparison src/java/de/intevation/mxd/reader/CartoLineSymbolReader.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
85 * Reads the symbol attributes. 85 * Reads the symbol attributes.
86 * 86 *
87 * @return The XML node. 87 * @return The XML node.
88 */ 88 */
89 public Element read() 89 public Element read()
90 throws IOException { 90 throws Exception {
91 logger.debug("read()"); 91 logger.debug("read()");
92 Element symbolElement; 92 Element symbolElement = util.addSymbol(renderer);
93 try {
94 symbolElement = util.addSymbol(renderer);
95 }
96 catch(Exception e) {
97 e.printStackTrace();
98 return null;
99 }
100 93
101 symbolElement.setAttribute("name", symbol.getNameString()); 94 symbolElement.setAttribute("name", symbol.getNameString());
102 symbolElement.setAttribute("style", "line"); 95 symbolElement.setAttribute("style", "line");
103 if(symbol.getColor() instanceof IRgbColor) { 96 if(symbol.getColor() instanceof IRgbColor) {
104 IRgbColor color = (IRgbColor)symbol.getColor(); 97 IRgbColor color = (IRgbColor)symbol.getColor();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)