reduze exception info to message only

This commit is contained in:
afischerdev 2023-03-14 14:22:12 +01:00
parent fbc01c0ba9
commit 3d31b8284c

View file

@ -187,6 +187,8 @@ public final class NodesCache {
ghostWakeup += segment.getDataSize();
}
return segment;
} catch (IOException re) {
throw new RuntimeException(re.getMessage());
} catch (RuntimeException re) {
throw re;
} catch (Exception e) {
@ -294,14 +296,14 @@ public final class NodesCache {
for (int i = 0; i < len; i++) {
MatchedWaypoint mwp = unmatchedWaypoints.get(i);
if (mwp.crosspoint == null) {
if (unmatchedWaypoints.size() > 1 && i == unmatchedWaypoints.size()-1 && unmatchedWaypoints.get(i-1).direct) {
if (unmatchedWaypoints.size() > 1 && i == unmatchedWaypoints.size() - 1 && unmatchedWaypoints.get(i - 1).direct) {
mwp.crosspoint = new OsmNode(mwp.waypoint.ilon, mwp.waypoint.ilat);
mwp.direct = true;
} else {
throw new IllegalArgumentException(mwp.name + "-position not mapped in existing datafile");
}
}
if (unmatchedWaypoints.size() > 1 && i == unmatchedWaypoints.size()-1 && unmatchedWaypoints.get(i-1).direct) {
if (unmatchedWaypoints.size() > 1 && i == unmatchedWaypoints.size() - 1 && unmatchedWaypoints.get(i - 1).direct) {
mwp.crosspoint = new OsmNode(mwp.waypoint.ilon, mwp.waypoint.ilat);
mwp.direct = true;
}