blockstack-storage
Version:
The Blockstack Javascript library for storage.
43 lines (29 loc) • 2.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var UnsupportedNetstringTypeError = exports.UnsupportedNetstringTypeError = function (_Error) {
_inherits(UnsupportedNetstringTypeError, _Error);
function UnsupportedNetstringTypeError(message) {
_classCallCheck(this, UnsupportedNetstringTypeError);
var _this = _possibleConstructorReturn(this, (UnsupportedNetstringTypeError.__proto__ || Object.getPrototypeOf(UnsupportedNetstringTypeError)).call(this));
_this.name = 'UnsupportedNetstringTypeError';
_this.message = message || '';
return _this;
}
return UnsupportedNetstringTypeError;
}(Error);
var InvalidNetstringError = exports.InvalidNetstringError = function (_Error2) {
_inherits(InvalidNetstringError, _Error2);
function InvalidNetstringError(message) {
_classCallCheck(this, InvalidNetstringError);
var _this2 = _possibleConstructorReturn(this, (InvalidNetstringError.__proto__ || Object.getPrototypeOf(InvalidNetstringError)).call(this));
_this2.name = 'InvalidNetstringError';
_this2.message = message || '';
return _this2;
}
return InvalidNetstringError;
}(Error);