Genel bakış
typeCore Runtime

RuntimeError

Runtime-level failure union added around every behavior's domain error type.

Signature

tsSignature
export type RuntimeError = Cancelled | Thrown;

Imports

tsImport
import { RuntimeError } from "@/lib/flow/core/runtime";
import { RuntimeError } from "@/lib/flow";

Details

Domain errors describe expected application failures. `RuntimeError` describes cancellation or

unexpected thrown exceptions observed by the Flow runtime.

thrown

Re-exports core result helpers used by advanced record internals.

re-export
Thrown

Runtime error returned when user code throws.

type

Source

tsflow/core/runtime.ts:31-31
export type RuntimeError = Cancelled | Thrown;