AbortError es-toolkit
An error class representing an aborted or canceled operation.
Usage
new AbortError(message?)
An error class used when an operation is aborted or canceled. It is thrown when operations like debounce or delay are canceled with an AbortSignal.
An example of using it with AbortSignal.
Parameters
messagestringoptional
The error message. Defaults to 'The operation was aborted'.
Returns
Returns an error instance representing an aborted operation. It inherits from Error and the name property is 'AbortError'.
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.