"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.RequestError = exports.InputError = exports.ConnectionError = void 0;
class ConnectionError extends Error {
  constructor(message, code, options) {
    super(message, options);
    this.code = code;
  }
}
exports.ConnectionError = ConnectionError;
class RequestError extends Error {
  constructor(message, code, options) {
    super(message, options);
    this.code = code;
  }
}
exports.RequestError = RequestError;
class InputError extends TypeError {}
exports.InputError = InputError;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJDb25uZWN0aW9uRXJyb3IiLCJFcnJvciIsImNvbnN0cnVjdG9yIiwibWVzc2FnZSIsImNvZGUiLCJvcHRpb25zIiwiZXhwb3J0cyIsIlJlcXVlc3RFcnJvciIsIklucHV0RXJyb3IiLCJUeXBlRXJyb3IiXSwic291cmNlcyI6WyIuLi9zcmMvZXJyb3JzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBDb25uZWN0aW9uRXJyb3IgZXh0ZW5kcyBFcnJvciB7XG4gIGRlY2xhcmUgY29kZTogc3RyaW5nIHwgdW5kZWZpbmVkO1xuXG4gIGRlY2xhcmUgaXNUcmFuc2llbnQ6IGJvb2xlYW4gfCB1bmRlZmluZWQ7XG5cbiAgY29uc3RydWN0b3IobWVzc2FnZTogc3RyaW5nLCBjb2RlPzogc3RyaW5nLCBvcHRpb25zPzogRXJyb3JPcHRpb25zKSB7XG4gICAgc3VwZXIobWVzc2FnZSwgb3B0aW9ucyk7XG5cbiAgICB0aGlzLmNvZGUgPSBjb2RlO1xuICB9XG59XG5cbmV4cG9ydCBjbGFzcyBSZXF1ZXN0RXJyb3IgZXh0ZW5kcyBFcnJvciB7XG4gIGRlY2xhcmUgY29kZTogc3RyaW5nIHwgdW5kZWZpbmVkO1xuXG4gIGRlY2xhcmUgbnVtYmVyOiBudW1iZXIgfCB1bmRlZmluZWQ7XG4gIGRlY2xhcmUgc3RhdGU6IG51bWJlciB8IHVuZGVmaW5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