1 const UnsubscriptionErrorImpl = (() => {
2 function UnsubscriptionErrorImpl(errors) {
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';
11 UnsubscriptionErrorImpl.prototype = Object.create(Error.prototype);
12 return UnsubscriptionErrorImpl;
14 export const UnsubscriptionError = UnsubscriptionErrorImpl;
15 //# sourceMappingURL=UnsubscriptionError.js.map