mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-13 22:15:25 +00:00
update
This commit is contained in:
17
node_modules/rxjs/_esm2015/util/UnsubscriptionError.js
generated
vendored
Normal file
17
node_modules/rxjs/_esm2015/util/UnsubscriptionError.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* An error thrown when one or more errors have occurred during the
|
||||
* `unsubscribe` of a {@link Subscription}.
|
||||
*/
|
||||
export class UnsubscriptionError extends Error {
|
||||
constructor(errors) {
|
||||
super();
|
||||
this.errors = errors;
|
||||
const err = Error.call(this, errors ?
|
||||
`${errors.length} errors occurred during unsubscription:
|
||||
${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '');
|
||||
this.name = err.name = 'UnsubscriptionError';
|
||||
this.stack = err.stack;
|
||||
this.message = err.message;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=UnsubscriptionError.js.map
|
Reference in New Issue
Block a user