Skip to content

Commit 0463d84

Browse files
committed
fixed wrong exception type
1 parent fcb7404 commit 0463d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/graphhopper/routing/AlternativeRoute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public void setMaxExplorationFactor(double explorationFactor) {
157157
public void setMaxPaths(int maxPaths) {
158158
this.maxPaths = maxPaths;
159159
if (this.maxPaths < 2)
160-
throw new IllegalStateException("Use normal algorithm with less overhead instead if no alternatives are required");
160+
throw new IllegalArgumentException("Use normal algorithm with less overhead instead if no alternatives are required");
161161
}
162162

163163
/**

0 commit comments

Comments
 (0)