baml.panics.AllocFailure

Memory allocation failure. This happens when an operation would have caused an unrecoverable Out-Of-Memory error so we panic instead. Note that not all memory allocation failures are guaranteed to panic; some may cause a hard failure.

Reference version

Signature

class baml.panics.AllocFailure

Memory allocation failure. This happens when an operation would have caused an unrecoverable Out-Of-Memory error so we panic instead. Note that not all memory allocation failures are guaranteed to panic; some may cause a hard failure.

Examples

let too_big = uint8array.zeroes(int.max_value()); // panics

Source:<builtin>/baml/ns_panics/panics.bamlbytes 29202963

Fields

message

string

Implementations

baml.Concrete for T

Source:<builtin>/baml/core.bamlbytes 747779