Skip to content

Commit

Permalink
nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Feb 13, 2022
1 parent 5d96380 commit 2a28e97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private Scaler(int anchorX, int anchorY, double factor)
this.anchorY = anchorY;
if (factor <= 0)
{
throw new RuntimeException("factor should be greater than 0, but " + factor + " found");
throw new IllegalArgumentException("factor should be greater than 0, but " + factor + " found");
}
this.factor = factor;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static ModPredicate of(Condition condition)
{
if (condition.type() != Condition.Type.MOD)
{
throw new RuntimeException("Only MOD condition type is accepted");
throw new IllegalArgumentException("Only MOD condition type is accepted");
}
return new ModPredicate(condition.value(), Arrays.asList(condition.versionPredicates()));
}
Expand Down

0 comments on commit 2a28e97

Please sign in to comment.