# Function isTimeoutRelatedError

- isTimeoutRelatedError(error: unknown): boolean

  Checks whether an error represents an EP API request timeout.

  Detects timeouts regardless of how deeply they are wrapped by recursively walking the `cause` chain:

  - Direct `TimeoutError`
  - `APIError` with status 408 (produced by `baseClient.toAPIError`)
  - `ToolError` or `Error` whose `cause` is any of the above (at any depth)

  #### Parameters

  - error: unknown

    Caught error value

  #### Returns boolean

  `true` when the root cause is a timeout

  - Defined in tools/shared/errorHandler.ts:25