a zip code crypto-currency system good for red ONLY

UnsubscriptionError.js 1.1KB

123456789101112131415161718192021222324252627
  1. /** PURE_IMPORTS_START PURE_IMPORTS_END */
  2. var __extends = (this && this.__extends) || function (d, b) {
  3. for (var p in b)
  4. if (b.hasOwnProperty(p))
  5. d[p] = b[p];
  6. function __() { this.constructor = d; }
  7. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  8. };
  9. /**
  10. * An error thrown when one or more errors have occurred during the
  11. * `unsubscribe` of a {@link Subscription}.
  12. */
  13. export var UnsubscriptionError = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
  14. __extends(UnsubscriptionError, _super);
  15. function UnsubscriptionError(errors) {
  16. _super.call(this);
  17. this.errors = errors;
  18. var err = Error.call(this, errors ?
  19. errors.length + " errors occurred during unsubscription:\n " + errors.map(function (err, i) { return ((i + 1) + ") " + err.toString()); }).join('\n ') : '');
  20. this.name = err.name = 'UnsubscriptionError';
  21. this.stack = err.stack;
  22. this.message = err.message;
  23. }
  24. return UnsubscriptionError;
  25. }(Error));
  26. //# sourceMappingURL=UnsubscriptionError.js.map