UNPKG

wed

Version:

Wed is a schema-aware editor for XML documents.

21 lines (18 loc) 634 B
define(function(require,exports,module){ /** * An error thrown when one or more errors have occurred during the * `unsubscribe` of a {@link Subscription}. */ export class UnsubscriptionError extends Error { constructor(errors) { super(errors ? `${errors.length} errors occurred during unsubscription: ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : ''); this.errors = errors; this.name = 'UnsubscriptionError'; Object.setPrototypeOf(this, UnsubscriptionError.prototype); } } //# sourceMappingURL=UnsubscriptionError.js.map return module.exports; });