UNPKG

undici-retry

Version:

Library for handling retry logic with undici HTTP client

19 lines 637 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnprocessableResponseError = void 0; class UnprocessableResponseError extends Error { details; errorCode; isUnprocessableResponseError = true; constructor(params) { super(params.message); this.name = 'UnprocessableResponseError'; this.details = { rawBody: params.rawBody, requestLabel: params.requestLabel, }; this.errorCode = params.errorCode; } } exports.UnprocessableResponseError = UnprocessableResponseError; //# sourceMappingURL=UnprocessableResponseError.js.map