Stone.js API
    Preparing search index...

    Raised when the limiter cannot be built or a rule makes no sense.

    Deliberately not a RateLimitError: that one is a refusal and answers 429, which would tell a caller to slow down about a missing package or a limiter nobody registered. A setup mistake is the application's, not the caller's, and it reads as one.

    Hierarchy

    • IntegrationError
      • RateLimitConfigurationError
    Index
    cause?: Error
    code?: string
    metadata?: unknown
    • Converts the error to a formatted string representation.

      Parameters

      • Optionalmultiline: boolean

        Determine if output value must be multiline or not.

      Returns string

      A formatted error string.

    • Create a RuntimeError.

      Type Parameters

      • T extends RuntimeError = RuntimeError

      Parameters

      • message: string
      • Optionaloptions: ErrorOptions

        The options to create a RuntimeError.

      Returns T

      A new RuntimeError instance.