@acutmore/rxjs
Version:
Reactive Extensions for modern JavaScript
17 lines (16 loc) • 425 B
text/typescript
/**
* An error thrown when an action is invalid because the object has been
* unsubscribed.
*
* @see {@link Subject}
* @see {@link BehaviorSubject}
*
* @class ObjectUnsubscribedError
*/
export class ObjectUnsubscribedError extends Error {
constructor() {
super('object unsubscribed');
this.name = 'ObjectUnsubscribedError';
(Object as any).setPrototypeOf(this, ObjectUnsubscribedError.prototype);
}
}