UNPKG

undici-retry

Version:

Library for handling retry logic with undici HTTP client

14 lines (13 loc) 387 B
import { ErrorDetails } from './commonTypes'; export type RequestErrorParams = { message: string; errorCode: string; details?: ErrorDetails; requestLabel?: string; }; export declare class ResponseError extends Error { readonly details?: ErrorDetails; readonly errorCode: string; readonly isResponseError = true; constructor(params: RequestErrorParams); }