Overview
typeCore Runtime

Thrown

Runtime error returned when user code throws.

Signature

tsSignature
export type Thrown = {
kind: "thrown";
error: unknown;
};

Imports

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

Details

Thrown exceptions are kept separate from expected domain errors so recovery helpers do not hide

programming or platform failures.

from

Converts a structural result-like value into a branded Flow result.

function
thrown

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

re-export

Source

tsflow/core/runtime.ts:20-23
export type Thrown = {
kind: "thrown";
error: unknown;
};