frontend/.pnpm-store/v3/files/8b/fdc4f86bb71e16f440543fca8894e6d71934898eef8cd5e33047b833df423f19fe3c01c06493b7182be84a55fc9ff51731a8e7afa185531669e28cc6f2128b

29 lines
586 B
Plaintext

export interface TimeoutError extends Error {
}
export interface TimeoutErrorCtor {
new(): TimeoutError;
}
const TimeoutErrorImpl = (() => {
function TimeoutErrorImpl(this: any) {
Error.call(this);
this.message = 'Timeout has occurred';
this.name = 'TimeoutError';
return this;
}
TimeoutErrorImpl.prototype = Object.create(Error.prototype);
return TimeoutErrorImpl;
})();
/**
* An error thrown when duetime elapses.
*
* @see {@link operators/timeout}
*
* @class TimeoutError
*/
export const TimeoutError: TimeoutErrorCtor = TimeoutErrorImpl as any;