comparison src/java/de/intevation/mxd/writer/SymbolWriter.java @ 120:11d63bf00326

Changed exception handling and logging in writer classes.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 16 Jun 2011 14:49:45 +0200
parents 18e4f143896b
children 8f30f7e802d6
comparison
equal deleted inserted replaced
119:84f202b6aa65 120:11d63bf00326
37 } 37 }
38 38
39 /** 39 /**
40 * Write the content. 40 * Write the content.
41 */ 41 */
42 public boolean write(Element symbolElement) 42 public boolean write(Element symbolElement) {
43 throws Exception {
44 logger.debug("write(Element)"); 43 logger.debug("write(Element)");
45 symbolSetObj symbolSet = map.getSymbolset(); 44 symbolSetObj symbolSet = map.getSymbolset();
46 45
47 String name = symbolElement.getAttribute("name"); 46 String name = symbolElement.getAttribute("name");
48 symbolObj sym = symbolSet.getSymbolByName(name); 47 symbolObj sym = symbolSet.getSymbolByName(name);
63 } 62 }
64 else { 63 else {
65 return false; 64 return false;
66 } 65 }
67 66
68 saveSymbolSet(symbolSet); 67 try {
68 saveSymbolSet(symbolSet);
69 }
70 catch(Exception e) {
71 logger.error("Error saving symbol set.");
72 return false;
73 }
69 74
70 return true; 75 return true;
71 } 76 }
72 77
73 private void writeSimple(symbolObj symbol) { 78 private void writeSimple(symbolObj symbol) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)