Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/GeometryUtils.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 | fd07bcaff880 |
comparison
equal
deleted
inserted
replaced
5180:520b4fea63bb | 5181:9d36ddf7dbd3 |
---|---|
28 import org.geotools.feature.simple.SimpleFeatureTypeBuilder; | 28 import org.geotools.feature.simple.SimpleFeatureTypeBuilder; |
29 import org.geotools.geojson.feature.FeatureJSON; | 29 import org.geotools.geojson.feature.FeatureJSON; |
30 import org.geotools.geometry.jts.JTS; | 30 import org.geotools.geometry.jts.JTS; |
31 import org.geotools.geometry.jts.ReferencedEnvelope; | 31 import org.geotools.geometry.jts.ReferencedEnvelope; |
32 import org.geotools.referencing.CRS; | 32 import org.geotools.referencing.CRS; |
33 import org.hibernate.HibernateException; | |
33 import org.opengis.feature.simple.SimpleFeature; | 34 import org.opengis.feature.simple.SimpleFeature; |
34 import org.opengis.feature.simple.SimpleFeatureType; | 35 import org.opengis.feature.simple.SimpleFeatureType; |
35 import org.opengis.referencing.FactoryException; | 36 import org.opengis.referencing.FactoryException; |
36 import org.opengis.referencing.NoSuchAuthorityCodeException; | 37 import org.opengis.referencing.NoSuchAuthorityCodeException; |
37 import org.opengis.referencing.crs.CoordinateReferenceSystem; | 38 import org.opengis.referencing.crs.CoordinateReferenceSystem; |
69 } | 70 } |
70 | 71 |
71 return max; | 72 return max; |
72 } | 73 } |
73 } | 74 } |
74 catch(IllegalArgumentException iae) { | 75 catch(HibernateException iae) { |
75 logger.warn("No vaild river axis forund for " + rivername); | 76 logger.warn("No vaild river axis forund for " + rivername); |
76 return null; | 77 return null; |
77 } | 78 } |
78 | 79 |
79 return null; | 80 return null; |