diff 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
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java	Thu Mar 07 10:22:30 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java	Thu Mar 07 10:44:27 2013 +0100
@@ -50,6 +50,7 @@
 import org.geotools.feature.FeatureCollection;
 import org.geotools.feature.FeatureCollections;
 import org.geotools.feature.simple.SimpleFeatureBuilder;
+import org.hibernate.HibernateException;
 import org.opengis.feature.simple.SimpleFeature;
 import org.opengis.feature.simple.SimpleFeatureType;
 
@@ -621,7 +622,7 @@
         try {
             axes = RiverAxis.getRiverAxis(river);
         }
-        catch (IllegalArgumentException iae) {
+        catch (HibernateException iae) {
             logger.warn("No valid river axis found for " + river);
             return;
         }

http://dive4elements.wald.intevation.org