comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java @ 5181:9d36ddf7dbd3

Change IllegalArgumentException to HibernateException.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 07 Mar 2013 10:44:27 +0100
parents 14d19313268a
children cf7e0d9022fa
comparison
equal deleted inserted replaced
5180:520b4fea63bb 5181:9d36ddf7dbd3
48 48
49 import org.apache.log4j.Logger; 49 import org.apache.log4j.Logger;
50 import org.geotools.feature.FeatureCollection; 50 import org.geotools.feature.FeatureCollection;
51 import org.geotools.feature.FeatureCollections; 51 import org.geotools.feature.FeatureCollections;
52 import org.geotools.feature.simple.SimpleFeatureBuilder; 52 import org.geotools.feature.simple.SimpleFeatureBuilder;
53 import org.hibernate.HibernateException;
53 import org.opengis.feature.simple.SimpleFeature; 54 import org.opengis.feature.simple.SimpleFeature;
54 import org.opengis.feature.simple.SimpleFeatureType; 55 import org.opengis.feature.simple.SimpleFeatureType;
55 56
56 57
57 public class FloodMapState 58 public class FloodMapState
619 620
620 List<RiverAxis> axes = null; 621 List<RiverAxis> axes = null;
621 try { 622 try {
622 axes = RiverAxis.getRiverAxis(river); 623 axes = RiverAxis.getRiverAxis(river);
623 } 624 }
624 catch (IllegalArgumentException iae) { 625 catch (HibernateException iae) {
625 logger.warn("No valid river axis found for " + river); 626 logger.warn("No valid river axis found for " + river);
626 return; 627 return;
627 } 628 }
628 if (axes == null || axes.isEmpty()) { 629 if (axes == null || axes.isEmpty()) {
629 logger.warn("Could not find river axis for: '" + river + "'"); 630 logger.warn("Could not find river axis for: '" + river + "'");

http://dive4elements.wald.intevation.org