RetryError

import { RetryError } from "jsr:@ende/async";

class

class RetryError extends Error

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

Example: Usage

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

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

Constructors

constructor

new RetryError(cause: unknown, attempts: number)

Constructs a new RetryError instance.

cause: unknown

the cause for this error.

attempts: number

the number of retry attempts made.

Source