Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
613 bytes
|
Line | |
---|
1 | const UnsubscriptionErrorImpl = (() => {
|
---|
2 | function UnsubscriptionErrorImpl(errors) {
|
---|
3 | Error.call(this);
|
---|
4 | this.message = errors ?
|
---|
5 | `${errors.length} errors occurred during unsubscription:
|
---|
6 | ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
|
---|
7 | this.name = 'UnsubscriptionError';
|
---|
8 | this.errors = errors;
|
---|
9 | return this;
|
---|
10 | }
|
---|
11 | UnsubscriptionErrorImpl.prototype = Object.create(Error.prototype);
|
---|
12 | return UnsubscriptionErrorImpl;
|
---|
13 | })();
|
---|
14 | export const UnsubscriptionError = UnsubscriptionErrorImpl;
|
---|
15 | //# sourceMappingURL=UnsubscriptionError.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.