Skip to content

Commit 8b57b0e

Browse files
Vladimir Kotalahornace
authored andcommitted
use IllegalArgumentException per review comment
1 parent b7eec78 commit 8b57b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/configuration/RuntimeEnvironment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public int getCommandTimeout(CommandTimeoutType cmdType) {
238238
return getRestfulCommandTimeout();
239239
}
240240

241-
throw new InvalidParameterException("invalid command timeout type");
241+
throw new IllegalArgumentException("invalid command timeout type");
242242
}
243243

244244
public int getRestfulCommandTimeout() {

0 commit comments

Comments
 (0)