UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

24 lines 642 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var EmptyErrorImpl = (function () { function EmptyErrorImpl() { Error.call(this); this.message = 'no elements in sequence'; this.name = 'EmptyError'; return this; } EmptyErrorImpl.prototype = Object.create(Error.prototype); return EmptyErrorImpl; })(); /** * 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 */ exports.EmptyError = EmptyErrorImpl; //# sourceMappingURL=EmptyError.js.map