comparison gnv-artifacts/src/main/java/de/intevation/gnv/exports/SimpleOdvDataCollector.java @ 335:e964a3d8f7bc

Some Refactoring work done. Moved Transition to State gnv-artifacts/trunk@401 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 08 Dec 2009 08:39:03 +0000
parents 3ea030aafe65
children a0e63136954e
comparison
equal deleted inserted replaced
334:e37930705daa 335:e964a3d8f7bc
8 8
9 import com.vividsolutions.jts.io.ParseException; 9 import com.vividsolutions.jts.io.ParseException;
10 import com.vividsolutions.jts.geom.Point; 10 import com.vividsolutions.jts.geom.Point;
11 11
12 import de.intevation.gnv.geobackend.base.Result; 12 import de.intevation.gnv.geobackend.base.Result;
13 import de.intevation.gnv.transition.exception.TransitionException; 13 import de.intevation.gnv.state.exception.StateException;
14 14
15 /** 15 /**
16 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) 16 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de)
17 */ 17 */
18 public class SimpleOdvDataCollector 18 public class SimpleOdvDataCollector
29 public SimpleOdvDataCollector(String[] names) { 29 public SimpleOdvDataCollector(String[] names) {
30 super(names); 30 super(names);
31 } 31 }
32 32
33 public String[] getData(Result result) 33 public String[] getData(Result result)
34 throws TransitionException 34 throws StateException
35 { 35 {
36 if (rd == null) 36 if (rd == null)
37 init(result); 37 init(result);
38 38
39 try { 39 try {
60 60
61 return entries; 61 return entries;
62 } 62 }
63 catch (ParseException pe) { 63 catch (ParseException pe) {
64 log.error(pe, pe); 64 log.error(pe, pe);
65 throw new TransitionException( 65 throw new StateException(
66 "Error occured while parsing source data."); 66 "Error occured while parsing source data.");
67 } 67 }
68 catch (java.text.ParseException pe) { 68 catch (java.text.ParseException pe) {
69 log.error(pe, pe); 69 log.error(pe, pe);
70 throw new TransitionException( 70 throw new StateException(
71 "Error occured while parsing source data."); 71 "Error occured while parsing source data.");
72 } 72 }
73 } 73 }
74 } 74 }

http://dive4elements.wald.intevation.org