baml.panics.Exit$stream

A clean process-termination request from `baml.sys.exit(code)`.

Reference version

Signature

class baml.panics.Exit$stream

A clean process-termination request from baml.sys.exit(code).

Catchable like any other panic; if left unhandled, the engine terminates the process with this code. Patterned after Python's SystemExit.

Examples

baml.sys.exit(0);

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

Fields

code

int | null

Implementations

baml.Concrete for T

Source:<builtin>/baml/core.bamlbytes 747–779