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.AllocFailureMemory 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 2920–2963
Fields
message
stringImplementations
baml.Concrete for T
Source:<builtin>/baml/core.bamlbytes 747–779