/** * Used to check overflows. This is NOT used in {@link UnsignedInt128} itself * because this overflow semantics is Decimal's. (throws - but not a checked * exception) ArithmeticException if this value is equal to or exceed 10**38. */ public void throwIfExceedsTenToThirtyEight() { if (exceedsTenToThirtyEight()) { SqlMathUtil.throwOverflowException(); } }
/** * Used to check overflows. This is NOT used in {@link UnsignedInt128} itself * because this overflow semantics is Decimal's. (throws - but not a checked * exception) ArithmeticException if this value is equal to or exceed 10**38. */ public void throwIfExceedsTenToThirtyEight() { if (exceedsTenToThirtyEight()) { SqlMathUtil.throwOverflowException(); } }
/** * Used to check overflows. This is NOT used in {@link UnsignedInt128} itself * because this overflow semantics is Decimal's. (throws - but not a checked * exception) ArithmeticException if this value is equal to or exceed 10**38. */ public void throwIfExceedsTenToThirtyEight() { if (exceedsTenToThirtyEight()) { SqlMathUtil.throwOverflowException(); } }