baml.panics.Exit

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

Reference version

Signature

class baml.panics.Exit

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 2535–2564

Fields

code

int

Implementations

baml.Concrete for T

Static methods

function

type

() -> reflect.Type throws never

This type's runtime type value: int.type() is the same value as reflect.Type.of<int>().

Spell it on a declared type written as one name, optionally qualified or with generic arguments: Foo.type(), root.models.Base.type(), Box<int[]>.type(). Array, optional, union, map and function types, interfaces, and generic type parameters keep the reflect.Type.of<T>() form. A type that declares its own type member keeps resolving to it.

Source:<builtin>/baml/core.bamlbytes 1360–1392