baml.panics.IntegerOverflow$stream

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.IntegerOverflow$stream

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.

Examples

let result = int.max_value() + 1; // panics

Source:<builtin>/baml/ns_panics/panics.bamlbytes 0–0

Fields

message

string | null

Implementations

baml.Concrete for T

Source:<builtin>/baml/core.bamlbytes 747–779