1 export interface ArgumentOutOfRangeError extends Error {
4 export interface ArgumentOutOfRangeErrorCtor {
5 new(): ArgumentOutOfRangeError;
8 const ArgumentOutOfRangeErrorImpl = (() => {
9 function ArgumentOutOfRangeErrorImpl(this: any) {
11 this.message = 'argument out of range';
12 this.name = 'ArgumentOutOfRangeError';
16 ArgumentOutOfRangeErrorImpl.prototype = Object.create(Error.prototype);
18 return ArgumentOutOfRangeErrorImpl;
22 * An error thrown when an element was queried at a certain index of an
23 * Observable, but no such index or position exists in that sequence.
25 * @see {@link elementAt}
27 * @see {@link takeLast}
29 * @class ArgumentOutOfRangeError
31 export const ArgumentOutOfRangeError: ArgumentOutOfRangeErrorCtor = ArgumentOutOfRangeErrorImpl as any;