TimeoutError es-toolkit
An error class representing an operation that has timed out.
Usage
new TimeoutError(message?)
An error class used when an operation's time limit has been exceeded. It is thrown when operations like timeout or withTimeout have timed out.
An example of using it with timeout.
Parameters
messagestringoptional
The error message. Defaults to 'The operation was timed out'.
Returns
Returns an error instance representing a timed out operation. It inherits from Error and the name property is 'TimeoutError'.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.