baml.panics.Unreachable

Used to mark a branch that should be impossible to reach, based on user invariants that cannot be validated by the compiler.

Reference version

Signature

class baml.panics.Unreachable

Used to mark a branch that should be impossible to reach, based on user invariants that cannot be validated by the compiler.

Examples

TODO: unreachable() needs to be added back as an alternative to panic and exit

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

Fields

message

string

Implementations

baml.Concrete for T

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