baml.panics.HostContractViolation

A host callable violated its typed contract: it returned a value of the wrong type, or threw a value that does not match its declared error contract. Catchable like any other panic.

Reference version

Signature

class baml.panics.HostContractViolation

A host callable violated its typed contract: it returned a value of the wrong type, or threw a value that does not match its declared error contract. Catchable like any other panic.

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

Fields

message

string

class_name

string | null

language

string | null

Implementations

baml.Concrete for T

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