UnsubscriptionError.js 474 B

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