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

    Variable ERROR_CODE_REGISTRYConst

    ERROR_CODE_REGISTRY: readonly ErrorCodeEntry[] = ...

    Complete registry of all BusError codes with their metadata. This is the single source of truth for error documentation.

    import { ERROR_CODE_REGISTRY } from 'vapor-chamber';
    // Lookup an error code
    const entry = ERROR_CODE_REGISTRY.find(e => e.code === 'VC_CORE_NO_HANDLER');
    console.log(entry?.fix); // "Register a handler with bus.register(action, handler)"
    // Generate an LLM system prompt with all error codes
    const prompt = ERROR_CODE_REGISTRY
    .map(e => `${e.code} (${e.severity}): ${e.message} → Fix: ${e.fix}`)
    .join('\n');