es-toolkit/docs/reference/error/AbortError.md

14 lines
298 B
Markdown
Raw Normal View History

2024-08-11 15:38:32 +03:00
# AbortError
An error class representing an operation that was aborted.
It occurs when operations like [debounce](../function/debounce.md) or [delay](../promise/delay.md) are aborted using `AbortSignal`s.
## Interface
```typescript
class AbortError extends Error {
name = 'AbortError',
}
```