UnsubscriptionError.js 673 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.UnsubscriptionError = void 0;
  4. var createErrorClass_1 = require("./createErrorClass");
  5. exports.UnsubscriptionError = createErrorClass_1.createErrorClass(function (_super) {
  6. return function UnsubscriptionErrorImpl(errors) {
  7. _super(this);
  8. this.message = errors
  9. ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n ')
  10. : '';
  11. this.name = 'UnsubscriptionError';
  12. this.errors = errors;
  13. };
  14. });
  15. //# sourceMappingURL=UnsubscriptionError.js.map