Class RetryError

Error thrown in retry once the maximum number of failed attempts has been reached.

import { RetryError } from "@std/async/retry";

throw new RetryError({ foo: "bar" }, 3);
Hierarchy
  • Error
    • RetryError

Constructors

Properties

Constructors

  • Constructs a new RetryError instance.

    Parameters

    • cause: unknown

      the cause for this error.

    • attempts: number

      the number of retry attempts made.

    Returns RetryError

Properties

cause?: unknown
message: string
name: string
stack?: string