Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
857 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | export interface ArgumentOutOfRangeError extends Error {
|
---|
| 2 | }
|
---|
| 3 |
|
---|
| 4 | export interface ArgumentOutOfRangeErrorCtor {
|
---|
| 5 | new(): ArgumentOutOfRangeError;
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | const ArgumentOutOfRangeErrorImpl = (() => {
|
---|
| 9 | function ArgumentOutOfRangeErrorImpl(this: any) {
|
---|
| 10 | Error.call(this);
|
---|
| 11 | this.message = 'argument out of range';
|
---|
| 12 | this.name = 'ArgumentOutOfRangeError';
|
---|
| 13 | return this;
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | ArgumentOutOfRangeErrorImpl.prototype = Object.create(Error.prototype);
|
---|
| 17 |
|
---|
| 18 | return ArgumentOutOfRangeErrorImpl;
|
---|
| 19 | })();
|
---|
| 20 |
|
---|
| 21 | /**
|
---|
| 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.
|
---|
| 24 | *
|
---|
| 25 | * @see {@link elementAt}
|
---|
| 26 | * @see {@link take}
|
---|
| 27 | * @see {@link takeLast}
|
---|
| 28 | *
|
---|
| 29 | * @class ArgumentOutOfRangeError
|
---|
| 30 | */
|
---|
| 31 | export const ArgumentOutOfRangeError: ArgumentOutOfRangeErrorCtor = ArgumentOutOfRangeErrorImpl as any; |
---|
Note:
See
TracBrowser
for help on using the repository browser.