diff flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java @ 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 9562ca537143
children a584a26d5fde
line wrap: on
line diff
--- 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