UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

24 lines 1.09 kB
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; define(["require", "exports"], function (require, exports) { "use strict"; /** * An error thrown when one or more errors have occurred during the * `unsubscribe` of a {@link Subscription}. */ var UnsubscriptionError = (function (_super) { __extends(UnsubscriptionError, _super); function UnsubscriptionError(errors) { _super.call(this); this.errors = errors; this.name = 'UnsubscriptionError'; this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return ((i + 1) + ") " + err.toString()); }).join('\n') : ''; } return UnsubscriptionError; }(Error)); exports.UnsubscriptionError = UnsubscriptionError; }); //# sourceMappingURL=UnsubscriptionError.js.map