baml.panics.IntegerOverflow
Raised when an `int` arithmetic operation (`+`, `-`, `*`, `/`, unary `-`) overflows the representable range. `int` is a 63-bit signed integer (`[-2^62, 2^62 - 1]`); operations that would fall outside it throw this rather than silently wrapping. Use `bigint` for unbounded integers.
Reference version
Signature
class baml.panics.IntegerOverflowRaised when an int arithmetic operation (+, -, *, /, unary -)
overflows the representable range. int is a 63-bit signed integer
([-2^62, 2^62 - 1]); operations that would fall outside it throw this
rather than silently wrapping. Use bigint for unbounded integers.
Examples
let result = int.max_value() + 1; // panics
Source:<builtin>/baml/ns_panics/panics.bamlbytes 4655–4701
Fields
message
stringImplementations
baml.Concrete for T
Source:<builtin>/baml/core.bamlbytes 763–795