1 export interface ObjectUnsubscribedError extends Error {
4 export interface ObjectUnsubscribedErrorCtor {
5 new(): ObjectUnsubscribedError;
8 const ObjectUnsubscribedErrorImpl = (() => {
9 function ObjectUnsubscribedErrorImpl(this: any) {
11 this.message = 'object unsubscribed';
12 this.name = 'ObjectUnsubscribedError';
16 ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype);
18 return ObjectUnsubscribedErrorImpl;
22 * An error thrown when an action is invalid because the object has been
25 * @see {@link Subject}
26 * @see {@link BehaviorSubject}
28 * @class ObjectUnsubscribedError
30 export const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = ObjectUnsubscribedErrorImpl as any;