diff flys-backend/src/main/java/de/intevation/flys/backend/SpatialInfo.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 dba703edfff1
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/backend/SpatialInfo.java	Thu Mar 07 10:22:30 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/backend/SpatialInfo.java	Thu Mar 07 10:44:27 2013 +0100
@@ -4,6 +4,7 @@
 
 import org.apache.log4j.Logger;
 
+import org.hibernate.HibernateException;
 import org.hibernate.Query;
 import org.hibernate.Session;
 
@@ -93,7 +94,7 @@
                 logger.warn("River has no RiverAxis.");
             }
         }
-        catch(IllegalArgumentException iae) {
+        catch(HibernateException iae) {
             logger.warn("No vaild river axis found for " + river.getName());
             return;
         }

http://dive4elements.wald.intevation.org