changeset 1837:0585bf8af41b

Catch more specific Exception in FLYSArtifactCollection. flys-artifacts/trunk@3173 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 07 Nov 2011 10:43:51 +0000
parents 729ba79e94a0
children 853cd2120d69
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Nov 04 14:09:05 2011 +0000
+++ b/flys-artifacts/ChangeLog	Mon Nov 07 10:43:51 2011 +0000
@@ -1,3 +1,8 @@
+2011-11-07  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java:
+	  Be more specific in what to catch.
+	
 2011-11-04  Ingo Weinzierl <ingo@intevation.de>
 
 	* doc/conf/meta-data.xml: Added the CrossSectionTracks to the "floodmap"
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java	Fri Nov 04 14:09:05 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java	Mon Nov 07 10:43:51 2011 +0000
@@ -733,8 +733,8 @@
             log.debug("Got raw artifact");
             flysContext.put(flysContext.ARTIFACT_KEY, artifact);
         }
-        catch (Exception e) {
-            log.error("Exception caught when trying to get art.", e);
+        catch (ArtifactDatabaseException dbe) {
+            log.error("Exception caught when trying to get art.", dbe);
         }
 
         Theme t = ThemeFactory.getTheme(flysContext, facet, pattern, outName);

http://dive4elements.wald.intevation.org