UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

21 lines 552 B
/** * An error thrown when an Observable or a sequence was queried but has no * elements. * * @see {@link first} * @see {@link last} * @see {@link single} * * @class EmptyError */ export var EmptyError = (function (_super) { __extends(EmptyError, _super); function EmptyError() { var err = _super.call(this, 'no elements in sequence'); this.name = err.name = 'EmptyError'; this.stack = err.stack; this.message = err.message; } return EmptyError; }(Error)); //# sourceMappingURL=EmptyError.js.map