mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 02:33:54 +03:00
14 lines
276 B
Markdown
14 lines
276 B
Markdown
|
# TimeoutError
|
||
|
|
||
|
An error class representing an timeout.
|
||
|
|
||
|
It occurs when operations like [timeout](../promise/timeout.md) or [withTimeout](../promise/withTimeout.md) have timed out.
|
||
|
|
||
|
## Interface
|
||
|
|
||
|
```typescript
|
||
|
class TimeoutError extends Error {
|
||
|
name = 'TimeoutError',
|
||
|
}
|
||
|
```
|