Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/RiverMapfileGenerator.java @ 5173:14d19313268a
Catch IllegalArgumentException instead of RuntimeException, added logging.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 05 Mar 2013 09:51:55 +0100 |
parents | c1b60f8c3390 |
children | 9d36ddf7dbd3 |
comparison
equal
deleted
inserted
replaced
5172:a51515056c45 | 5173:14d19313268a |
---|---|
68 // RiverAxis.java. | 68 // RiverAxis.java. |
69 List<RiverAxis> riverAxis = null; | 69 List<RiverAxis> riverAxis = null; |
70 try { | 70 try { |
71 riverAxis = RiverAxis.getRiverAxis(river.getName()); | 71 riverAxis = RiverAxis.getRiverAxis(river.getName()); |
72 } | 72 } |
73 catch (RuntimeException he) { | 73 catch (IllegalArgumentException iae) { |
74 logger.error("No valid riveraxis found for " + river.getName()); | 74 logger.error("No valid riveraxis found for " + river.getName()); |
75 continue; | 75 continue; |
76 } | 76 } |
77 | 77 |
78 if (riverAxis == null) { | 78 if (riverAxis == null) { |