File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ import {BehaviorSubject} from './subject/BehaviorSubject';
137137import { ConnectableObservable } from './observable/ConnectableObservable' ;
138138import { Notification } from './Notification' ;
139139import { EmptyError } from './util/EmptyError' ;
140+ import { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError' ;
140141import { ArgumentOutOfRangeError } from './util/ArgumentOutOfRangeError' ;
141142import { nextTick } from './scheduler/nextTick' ;
142143import { immediate } from './scheduler/immediate' ;
@@ -167,6 +168,7 @@ export {
167168 Notification ,
168169 EmptyError ,
169170 ArgumentOutOfRangeError ,
171+ ObjectUnsubscribedError ,
170172 TestScheduler ,
171173 VirtualTimeScheduler ,
172174 TimeInterval
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ import {ConnectableObservable} from './observable/ConnectableObservable';
117117import { Notification } from './Notification' ;
118118import { EmptyError } from './util/EmptyError' ;
119119import { ArgumentOutOfRangeError } from './util/ArgumentOutOfRangeError' ;
120- import { nextTick } from './scheduler/nextTick ' ;
120+ import { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError ' ;
121121import { immediate } from './scheduler/immediate' ;
122122import { NextTickScheduler } from './scheduler/NextTickScheduler' ;
123123import { ImmediateScheduler } from './scheduler/ImmediateScheduler' ;
@@ -142,5 +142,6 @@ export {
142142 ConnectableObservable ,
143143 Notification ,
144144 EmptyError ,
145- ArgumentOutOfRangeError
145+ ArgumentOutOfRangeError ,
146+ ObjectUnsubscribedError
146147} ;
Original file line number Diff line number Diff line change 1+ /**
2+ * an error thrown when an action is invalid because the object
3+ * has been unsubscribed
4+ */
5+ export class ObjectUnsubscribedError extends Error {
6+ constructor ( ) {
7+ super ( 'object unsubscribed' ) ;
8+ this . name = 'ObjectUnsubscribedError' ;
9+ }
10+ }
You can’t perform that action at this time.
0 commit comments