UNPKG

@gandlaf21/bc-ur

Version:

A JS implementation of the Uniform Resources (UR) specification from Blockchain Commons

67 lines (66 loc) 2.8 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.InvalidChecksumError = exports.InvalidSequenceComponentError = exports.InvalidTypeError = exports.InvalidPathLengthError = exports.InvalidSchemeError = void 0; var InvalidSchemeError = /** @class */ (function (_super) { __extends(InvalidSchemeError, _super); function InvalidSchemeError() { var _this = _super.call(this, 'Invalid Scheme') || this; _this.name = 'InvalidSchemeError'; return _this; } return InvalidSchemeError; }(Error)); exports.InvalidSchemeError = InvalidSchemeError; var InvalidPathLengthError = /** @class */ (function (_super) { __extends(InvalidPathLengthError, _super); function InvalidPathLengthError() { var _this = _super.call(this, 'Invalid Path') || this; _this.name = 'InvalidPathLengthError'; return _this; } return InvalidPathLengthError; }(Error)); exports.InvalidPathLengthError = InvalidPathLengthError; var InvalidTypeError = /** @class */ (function (_super) { __extends(InvalidTypeError, _super); function InvalidTypeError() { var _this = _super.call(this, 'Invalid Type') || this; _this.name = 'InvalidTypeError'; return _this; } return InvalidTypeError; }(Error)); exports.InvalidTypeError = InvalidTypeError; var InvalidSequenceComponentError = /** @class */ (function (_super) { __extends(InvalidSequenceComponentError, _super); function InvalidSequenceComponentError() { var _this = _super.call(this, 'Invalid Sequence Component') || this; _this.name = 'InvalidSequenceComponentError'; return _this; } return InvalidSequenceComponentError; }(Error)); exports.InvalidSequenceComponentError = InvalidSequenceComponentError; var InvalidChecksumError = /** @class */ (function (_super) { __extends(InvalidChecksumError, _super); function InvalidChecksumError() { var _this = _super.call(this, 'Invalid Checksum') || this; _this.name = 'InvalidChecksumError'; return _this; } return InvalidChecksumError; }(Error)); exports.InvalidChecksumError = InvalidChecksumError;