blob: 89e9511d40132b243a49f972b19ada51f5a5ee2d [file] [log] [blame]
/**
* An error thrown when duetime elapses.
*
* @see {@link timeout}
*
* @class TimeoutError
*/
export class TimeoutError extends Error {
constructor() {
const err = super('Timeout has occurred');
this.name = err.name = 'TimeoutError';
this.stack = err.stack;
this.message = err.message;
}
}
//# sourceMappingURL=TimeoutError.js.map