ObjectUnsubscribedError.js 982B

1234567891011121314151617181920212223242526272829
  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 an action is invalid because the object has been
  11. * unsubscribed.
  12. *
  13. * @see {@link Subject}
  14. * @see {@link BehaviorSubject}
  15. *
  16. * @class ObjectUnsubscribedError
  17. */
  18. export var ObjectUnsubscribedError = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
  19. __extends(ObjectUnsubscribedError, _super);
  20. function ObjectUnsubscribedError() {
  21. var err = _super.call(this, 'object unsubscribed');
  22. this.name = err.name = 'ObjectUnsubscribedError';
  23. this.stack = err.stack;
  24. this.message = err.message;
  25. }
  26. return ObjectUnsubscribedError;
  27. }(Error));
  28. //# sourceMappingURL=ObjectUnsubscribedError.js.map