FlowGuard API - v1.2.0-rc.2
    Preparing search index...

    Class BlockedReasonRegistry

    Blocked reason registry.

    Central catalog of all known blocked/error codes. Pre-seeded with built-in codes, extensible at runtime.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    Methods

    • Format a blocked reason with variable interpolation.

      Returns a structured result ready for RailBlocked construction. Falls back to generic message for unknown codes — the block itself is already enforced by the rail logic, not by the registry.

      Parameters

      • code: string
      • Optionalvars: Record<string, string>

      Returns FormattedBlock