undici-retry
Version:
Library for handling retry logic with undici HTTP client
19 lines • 540 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResponseError = void 0;
class ResponseError extends Error {
details;
errorCode;
isResponseError = true;
constructor(params) {
super(params.message);
this.name = 'ResponseError';
this.details = {
...params.details,
requestLabel: params.requestLabel,
};
this.errorCode = params.errorCode;
}
}
exports.ResponseError = ResponseError;
//# sourceMappingURL=ResponseError.js.map