mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2024-12-27 05:15:25 +00:00
16 lines
378 B
JavaScript
16 lines
378 B
JavaScript
/**
|
|
* 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
|