Function stopRetrying

  • Produces the “sentinel” Error subclass StopRetrying, for use as a return value from withRetries.

    Parameters

    • message: string

      The message to attach to the StopRetrying instance.

    • Optionalcause: unknown

      The previous cause (often another Error) that resulted in stopping retries.

    Returns StopRetrying