"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isRetriable = exports.RetriableError = void 0;
class RetriableError extends Error {
    constructor(error) {
        super();
        this.message = error.message;
        this.name = error.name;
        this.stack = error.stack;
    }
}
exports.RetriableError = RetriableError;
const isRetriable = (error) => {
    return error instanceof RetriableError;
};
exports.isRetriable = isRetriable;
//# sourceMappingURL=retriable-error.js.map