RetryError
import { RetryError } from "jsr:@ende/async";class
class RetryError extends ErrorError 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: unknownthe cause for this error.
attempts: numberthe number of retry attempts made.