# WaitForError

`class` in `event-emitter` · v0.1.0-next.0

<https://docs.seedcord.org/packages/event-emitter/0.1.0-next.0/classes/wait-for-error>

Rejection thrown when a [`waitFor`](/packages/event-emitter/0.1.0-next.0/classes/typed-event-emitter#wait-for) is aborted or times out.

```ts
class WaitForError extends Error
```

## Constructors

### constructor

```ts
WaitForError(
    reason: "aborted" | "timeout",
    timeoutMs?: number
)
```

Constructs a new instance of the `WaitForError` class

## Properties

### reason

```ts
public readonly reason: 'aborted' | 'timeout'
```
