Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

UnsubscriptionError.js 613B

123456789101112131415
  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