vapor-chamber API reference - v1.16.0
    Preparing search index...

    Type Alias ErrorCodeEntry

    Error code definition — every BusError code has a structured entry. Useful for generating documentation, i18n lookups, and LLM error handling.

    type ErrorCodeEntry = {
        code: BusErrorCode;
        severity: BusSeverity;
        emitter: BusEmitter;
        retryable: boolean;
        category: "general" | "network" | "validation" | "internal" | "logic";
        message: string;
        fix: string;
    }
    Index
    severity: BusSeverity
    emitter: BusEmitter
    retryable: boolean

    Whether re-dispatching can plausibly succeed (transient failure, e.g. throttle/timeout) — false for permanent failures (validation, config). Must stay in sync with RETRYABLE_CODES in command-bus.ts (asserted in tests).

    category: "general" | "network" | "validation" | "internal" | "logic"

    Broad failure category for filtering, telemetry, and LLM error handling.

    message: string
    fix: string

    Human-readable fix suggestion for LLMs and developers.