Class RawRangeOverflow

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.frostlake.executor.expressions.RawRangeOverflow
All Implemented Interfaces:
Serializable

public class RawRangeOverflow extends RuntimeException
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 Details

  • Method Details

    • getKind

      public RawOverflowKind getKind()
      Which step overflowed, so the catcher knows WHOSE nullability the sentence takes.
    • messageWith

      public String messageWith(boolean nullable)
      The full sentence with the operand's resolved nullability.