ArgumentOutOfRangeError.js 572 B

12345678910111213141516171819
  1. /**
  2. * An error thrown when an element was queried at a certain index of an
  3. * Observable, but no such index or position exists in that sequence.
  4. *
  5. * @see {@link elementAt}
  6. * @see {@link take}
  7. * @see {@link takeLast}
  8. *
  9. * @class ArgumentOutOfRangeError
  10. */
  11. export class ArgumentOutOfRangeError extends Error {
  12. constructor() {
  13. const err = super('argument out of range');
  14. this.name = err.name = 'ArgumentOutOfRangeError';
  15. this.stack = err.stack;
  16. this.message = err.message;
  17. }
  18. }
  19. //# sourceMappingURL=ArgumentOutOfRangeError.js.map