baml.panics.MapKeyNotFound

Raised when a map is accessed with a key that does not exist.

Reference version

Signature

class baml.panics.MapKeyNotFound

Raised when a map is accessed with a key that does not exist.

Examples

let map = { "key": 42 };
let result = map["nonexistent"]; // panics

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

Fields

key

string

Implementations

baml.Concrete for T

Source:<builtin>/baml/core.bamlbytes 763–795