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';
137
137
import { ConnectableObservable } from './observable/ConnectableObservable' ;
138
138
import { Notification } from './Notification' ;
139
139
import { EmptyError } from './util/EmptyError' ;
140
+ import { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError' ;
140
141
import { ArgumentOutOfRangeError } from './util/ArgumentOutOfRangeError' ;
141
142
import { nextTick } from './scheduler/nextTick' ;
142
143
import { immediate } from './scheduler/immediate' ;
@@ -167,6 +168,7 @@ export {
167
168
Notification ,
168
169
EmptyError ,
169
170
ArgumentOutOfRangeError ,
171
+ ObjectUnsubscribedError ,
170
172
TestScheduler ,
171
173
VirtualTimeScheduler ,
172
174
TimeInterval
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ import {ConnectableObservable} from './observable/ConnectableObservable';
117
117
import { Notification } from './Notification' ;
118
118
import { EmptyError } from './util/EmptyError' ;
119
119
import { ArgumentOutOfRangeError } from './util/ArgumentOutOfRangeError' ;
120
- import { nextTick } from './scheduler/nextTick ' ;
120
+ import { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError ' ;
121
121
import { immediate } from './scheduler/immediate' ;
122
122
import { NextTickScheduler } from './scheduler/NextTickScheduler' ;
123
123
import { ImmediateScheduler } from './scheduler/ImmediateScheduler' ;
@@ -142,5 +142,6 @@ export {
142
142
ConnectableObservable ,
143
143
Notification ,
144
144
EmptyError ,
145
- ArgumentOutOfRangeError
145
+ ArgumentOutOfRangeError ,
146
+ ObjectUnsubscribedError
146
147
} ;
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