ObjectUnsubscribedError.js 502 B

123456789101112131415161718
  1. /**
  2. * An error thrown when an action is invalid because the object has been
  3. * unsubscribed.
  4. *
  5. * @see {@link Subject}
  6. * @see {@link BehaviorSubject}
  7. *
  8. * @class ObjectUnsubscribedError
  9. */
  10. export class ObjectUnsubscribedError extends Error {
  11. constructor() {
  12. const err = super('object unsubscribed');
  13. this.name = err.name = 'ObjectUnsubscribedError';
  14. this.stack = err.stack;
  15. this.message = err.message;
  16. }
  17. }
  18. //# sourceMappingURL=ObjectUnsubscribedError.js.map