c398657c93e44155dc38def7fba206e7436115c282bacb4e05b892535d4d7dcbb05f1b00d31613613aaf076ee14044e9d866ddce1676801d941aa89a5c7105 842 B

1234567891011121314151617181920212223242526272829
  1. import { createErrorClass } from './createErrorClass';
  2. export interface ObjectUnsubscribedError extends Error {}
  3. export interface ObjectUnsubscribedErrorCtor {
  4. /**
  5. * @deprecated Internal implementation detail. Do not construct error instances.
  6. * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
  7. */
  8. new (): ObjectUnsubscribedError;
  9. }
  10. /**
  11. * An error thrown when an action is invalid because the object has been
  12. * unsubscribed.
  13. *
  14. * @see {@link Subject}
  15. * @see {@link BehaviorSubject}
  16. *
  17. * @class ObjectUnsubscribedError
  18. */
  19. export const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = createErrorClass(
  20. (_super) =>
  21. function ObjectUnsubscribedErrorImpl(this: any) {
  22. _super(this);
  23. this.name = 'ObjectUnsubscribedError';
  24. this.message = 'object unsubscribed';
  25. }
  26. );