ArgumentOutOfRangeError.js 1.0KB

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