You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.0 KiB
25 lines
1.0 KiB
"use strict"; |
|
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 __()); |
|
}; |
|
/** |
|
* 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; |
|
var err = Error.call(this, errors ? |
|
errors.length + " errors occurred during unsubscription:\n " + errors.map(function (err, i) { return ((i + 1) + ") " + err.toString()); }).join('\n ') : ''); |
|
this.name = err.name = 'UnsubscriptionError'; |
|
this.stack = err.stack; |
|
this.message = err.message; |
|
} |
|
return UnsubscriptionError; |
|
}(Error)); |
|
exports.UnsubscriptionError = UnsubscriptionError; |
|
//# sourceMappingURL=UnsubscriptionError.js.map
|