Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java @ 2017:e384d78ff78b
Cosmetics.
flys-artifacts/trunk@3472 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 20 Dec 2011 06:26:25 +0000 |
parents | 06c157848c8f |
children | 3ebbe497d7f7 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java Mon Dec 19 17:20:13 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java Tue Dec 20 06:26:25 2011 +0000 @@ -65,6 +65,10 @@ } + /** + * Pulls Artifact with given UUID fromm database. + * @return FLYSArtifact with given UUID or null (in case of errors). + */ public static FLYSArtifact getArtifact(String uuid, CallContext context) { try { Artifact artifact = context.getDatabase().getRawArtifact(uuid); @@ -83,7 +87,8 @@ } // TODO: catch more selective catch (Exception e) { - logger.error("Cannot get FLYSArtifact " + uuid + " from database (" + e.getMessage() + ")."); + logger.error("Cannot get FLYSArtifact " + uuid + + " from database (" + e.getMessage() + ")."); return null; } }