51053d1a326d06bf8b864b1eb2acc68c760c9d8c8c75656e95b940a04bec9619a96f8e989b16e2b0a7dce583b5f0c83fb55c7c543b2c94e40dfc0284429350 875 B

12345678910111213141516171819202122232425262728
  1. import { createErrorClass } from './createErrorClass';
  2. export interface ArgumentOutOfRangeError extends Error {}
  3. export interface ArgumentOutOfRangeErrorCtor {
  4. /**
  5. * @deprecated Internal implementation detail. Do not construct error instances.
  6. * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
  7. */
  8. new (): ArgumentOutOfRangeError;
  9. }
  10. /**
  11. * An error thrown when an element was queried at a certain index of an
  12. * Observable, but no such index or position exists in that sequence.
  13. *
  14. * @see {@link elementAt}
  15. * @see {@link take}
  16. * @see {@link takeLast}
  17. */
  18. export const ArgumentOutOfRangeError: ArgumentOutOfRangeErrorCtor = createErrorClass(
  19. (_super) =>
  20. function ArgumentOutOfRangeErrorImpl(this: any) {
  21. _super(this);
  22. this.name = 'ArgumentOutOfRangeError';
  23. this.message = 'argument out of range';
  24. }
  25. );