Class RawRangeOverflow
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.frostlake.executor.expressions.RawRangeOverflow
- All Implemented Interfaces:
Serializable
An exact arithmetic step ran out of the 128-bit carrier, and the sentence still needs the refused
operand's NULLABILITY — which only the evaluator holding the expression tree can resolve. The
value-level arithmetic throws this with a complete DEFAULT message (the
{nullable}
spelling, the common case), so any caller that cannot resolve nullability still reports the full
live sentence; the expression evaluator catches it and rebuilds via messageWith(boolean) when it can
prove the operand not-null (a literal, or a column declared NOT NULL).
The two shapes carried here render their value differently (live-verified): a RESCALE refusal prints the operand's own digits PLAIN, while a QUOTIENT refusal prints the quotient as a DOUBLE in the six-significant-digit form even when its digits would fit the carrier.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRawRangeOverflow(RawOverflowKind kind, BigDecimal shownValue, int typeScale) -
Method Summary
Modifier and TypeMethodDescriptiongetKind()Which step overflowed, so the catcher knows WHOSE nullability the sentence takes.messageWith(boolean nullable) The full sentence with the operand's resolved nullability.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RawRangeOverflow
-
-
Method Details
-
getKind
Which step overflowed, so the catcher knows WHOSE nullability the sentence takes. -
messageWith
The full sentence with the operand's resolved nullability.
-