typesafe-ts API Documentation - v1.2.0
    Preparing search index...

    Interface RetryError<ErrorType>

    Error type returned by retry operations when all attempts fail. Contains the original error message, retry count, and all accumulated errors from failed attempts.

    interface RetryError<ErrorType extends Error = Error> {
        name: "Result Retry Error";
        message: `Failed after ${number} attempts.`;
        errors: ErrorType[];
        cause?: unknown;
        stack?: string;
    }

    Type Parameters

    • ErrorType extends Error = Error

    Hierarchy

    • Error
      • RetryError
    Index

    Properties

    name: "Result Retry Error"
    message: `Failed after ${number} attempts.`
    errors: ErrorType[]
    cause?: unknown
    stack?: string