source: trip-planner-front/node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 787 bytes
Line 
1export interface ObjectUnsubscribedError extends Error {
2}
3
4export interface ObjectUnsubscribedErrorCtor {
5 new(): ObjectUnsubscribedError;
6}
7
8const ObjectUnsubscribedErrorImpl = (() => {
9 function ObjectUnsubscribedErrorImpl(this: any) {
10 Error.call(this);
11 this.message = 'object unsubscribed';
12 this.name = 'ObjectUnsubscribedError';
13 return this;
14 }
15
16 ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype);
17
18 return ObjectUnsubscribedErrorImpl;
19})();
20
21/**
22 * An error thrown when an action is invalid because the object has been
23 * unsubscribed.
24 *
25 * @see {@link Subject}
26 * @see {@link BehaviorSubject}
27 *
28 * @class ObjectUnsubscribedError
29 */
30export const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = ObjectUnsubscribedErrorImpl as any;
Note: See TracBrowser for help on using the repository browser.