Skip to content

Commit

Permalink
improve error text
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Oct 12, 2024
1 parent 9439cdf commit 94dd102
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public final class BigDecimalType extends UnitType<BigDecimal> {
BigDecimalType(String canonicalTypeString, int bitLength, int scale, boolean unsigned) {
super(canonicalTypeString, BigDecimal.class, bitLength, unsigned);
if (scale <= 0 || scale > 80) {
throw illegalState("bad scale", "unexpected instance creation rejected by " + BigDecimalType.class.getName());
throw illegalState("bad scale", "bad scale rejected by " + BigDecimalType.class.getName());
}
this.scale = scale;
}
Expand Down

0 comments on commit 94dd102

Please sign in to comment.