@camunda8/sdk
    Preparing search index...

    Interface RetryError

    The error shape a retry decision is based on. Deliberately structural (not the RequestError class) so that calculateDelay functions written against got 11's RetryObject type keep type-checking.

    interface RetryError {
        code: string;
        options: { method: string };
        response?: {
            body?: unknown;
            headers: Record<string, string | string[] | undefined>;
            statusCode: number;
        };
    }

    Hierarchy

    • Error
      • RetryError
    Index

    Properties

    code: string
    options: { method: string }
    response?: {
        body?: unknown;
        headers: Record<string, string | string[] | undefined>;
        statusCode: number;
    }