source: trip-planner-front/node_modules/rxjs/src/internal/util/TimeoutError.ts

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: 586 bytes
Line 
1export interface TimeoutError extends Error {
2}
3
4export interface TimeoutErrorCtor {
5 new(): TimeoutError;
6}
7
8const 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 */
28export const TimeoutError: TimeoutErrorCtor = TimeoutErrorImpl as any;
Note: See TracBrowser for help on using the repository browser.