| 1 |
import { createErrorClass } from './createErrorClass'; |
| 2 |
export var UnsubscriptionError = createErrorClass(function (_super) { |
| 3 |
return function UnsubscriptionErrorImpl(errors) { |
| 4 |
_super(this); |
| 5 |
this.message = errors |
| 6 |
? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n ') |
| 7 |
: ''; |
| 8 |
this.name = 'UnsubscriptionError'; |
| 9 |
this.errors = errors; |
| 10 |
}; |
| 11 |
}); |
| 12 |
//# sourceMappingURL=UnsubscriptionError.js.map |