We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcb7404 commit 0463d84Copy full SHA for 0463d84
core/src/main/java/com/graphhopper/routing/AlternativeRoute.java
@@ -157,7 +157,7 @@ public void setMaxExplorationFactor(double explorationFactor) {
157
public void setMaxPaths(int maxPaths) {
158
this.maxPaths = maxPaths;
159
if (this.maxPaths < 2)
160
- throw new IllegalStateException("Use normal algorithm with less overhead instead if no alternatives are required");
+ throw new IllegalArgumentException("Use normal algorithm with less overhead instead if no alternatives are required");
161
}
162
163
/**
0 commit comments