Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
586 bytes
|
Line | |
---|
1 | export interface TimeoutError extends Error {
|
---|
2 | }
|
---|
3 |
|
---|
4 | export interface TimeoutErrorCtor {
|
---|
5 | new(): TimeoutError;
|
---|
6 | }
|
---|
7 |
|
---|
8 | const TimeoutErrorImpl = (() => {
|
---|
9 | function TimeoutErrorImpl(this: any) {
|
---|
10 | Error.call(this);
|
---|
11 | this.message = 'Timeout has occurred';
|
---|
12 | this.name = 'TimeoutError';
|
---|
13 | return this;
|
---|
14 | }
|
---|
15 |
|
---|
16 | TimeoutErrorImpl.prototype = Object.create(Error.prototype);
|
---|
17 |
|
---|
18 | return TimeoutErrorImpl;
|
---|
19 | })();
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * An error thrown when duetime elapses.
|
---|
23 | *
|
---|
24 | * @see {@link operators/timeout}
|
---|
25 | *
|
---|
26 | * @class TimeoutError
|
---|
27 | */
|
---|
28 | export const TimeoutError: TimeoutErrorCtor = TimeoutErrorImpl as any;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.