comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.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
619 619
620 List<RiverAxis> axes = null; 620 List<RiverAxis> axes = null;
621 try { 621 try {
622 axes = RiverAxis.getRiverAxis(river); 622 axes = RiverAxis.getRiverAxis(river);
623 } 623 }
624 catch (RuntimeException e) { 624 catch (IllegalArgumentException iae) {
625 logger.warn("No valid river axis found for " + river);
625 return; 626 return;
626 } 627 }
627 if (axes == null || axes.isEmpty()) { 628 if (axes == null || axes.isEmpty()) {
628 logger.warn("Could not find river axis for: '" + river + "'"); 629 logger.warn("Could not find river axis for: '" + river + "'");
629 return; 630 return;

http://dive4elements.wald.intevation.org