Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/BedQualityD50KmValueFinder.java @ 9086:b5dbcbaed42b
Avoid too many regular exceptions
author | gernotbelger |
---|---|
date | Fri, 25 May 2018 10:47:18 +0200 |
parents | a0feac6ea1ba |
children | e07a2b4606c1 |
comparison
equal
deleted
inserted
replaced
9085:8ad581d4690c | 9086:b5dbcbaed42b |
---|---|
164 public double findD50(final double km) { | 164 public double findD50(final double km) { |
165 try { | 165 try { |
166 return this.interpolator.value(km); | 166 return this.interpolator.value(km); |
167 } | 167 } |
168 catch (final ArgumentOutsideDomainException e) { | 168 catch (final ArgumentOutsideDomainException e) { |
169 e.printStackTrace(); | 169 // e.printStackTrace(); |
170 | 170 |
171 if (this.problems != null) { | 171 if (this.problems != null) { |
172 this.problems.addProblem(km, "bedqualityd50kmvaluefinder.missing"); | 172 this.problems.addProblem(km, "bedqualityd50kmvaluefinder.missing"); |
173 // Report only once | 173 // Report only once |
174 this.problems = null; | 174 this.problems = null; |