# Class TimeoutError

Timeout error thrown when an operation exceeds its time limit

#### Example

    if (Date.now() - startTime > timeout) {
      throw new TimeoutError('Operation timed out after 10s');
    }

#### Hierarchy

- Error
  - TimeoutError

- Defined in utils/timeout.ts:49

##### Index

### Constructors

constructor

### Properties

timeoutMs?

## Constructors

### constructor

- new TimeoutError(message: string, timeoutMs?: number): TimeoutError

  Create a new timeout error

  #### Parameters

  - message: string

    Description of the timeout

  - `Optional` timeoutMs: number

    The timeout duration in milliseconds

  #### Returns TimeoutError

  Overrides Error.constructor

  - Defined in utils/timeout.ts:56

## Properties

### `Optional` `Readonly` timeoutMs

timeoutMs?: number

The timeout duration in milliseconds

- Defined in utils/timeout.ts:58