ArgumentOutOfRangeError.js 1.0 KB

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. var __extends = (this && this.__extends) || function (d, b) {
  3. for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
  4. function __() { this.constructor = d; }
  5. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  6. };
  7. /**
  8. * An error thrown when an element was queried at a certain index of an
  9. * Observable, but no such index or position exists in that sequence.
  10. *
  11. * @see {@link elementAt}
  12. * @see {@link take}
  13. * @see {@link takeLast}
  14. *
  15. * @class ArgumentOutOfRangeError
  16. */
  17. var ArgumentOutOfRangeError = (function (_super) {
  18. __extends(ArgumentOutOfRangeError, _super);
  19. function ArgumentOutOfRangeError() {
  20. var err = _super.call(this, 'argument out of range');
  21. this.name = err.name = 'ArgumentOutOfRangeError';
  22. this.stack = err.stack;
  23. this.message = err.message;
  24. }
  25. return ArgumentOutOfRangeError;
  26. }(Error));
  27. exports.ArgumentOutOfRangeError = ArgumentOutOfRangeError;
  28. //# sourceMappingURL=ArgumentOutOfRangeError.js.map