# FetchError

> Error class representing a "Fetch Error" error, typically thrown when a fetch request fails.

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

Defined in: [packages/common/src/errors/FetchError.ts:6](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/common/src/errors/FetchError.ts#L6)

Error class representing a "Fetch Error" error, typically thrown when a fetch request fails.

## Extends

- [`BaseError`](BaseError)

## Constructors

### Constructor

```ts
new FetchError(
   route,
   method,
   cause?): FetchError;
```

Defined in: [packages/common/src/errors/FetchError.ts:16](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/common/src/errors/FetchError.ts#L16)

Initializes a new instance of the error message with a default message indicating that no chain was supplied to the client.

#### Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `route`
      </td>

      <td>
        `string`
      </td>

      <td>
        The route that failed to fetch.
      </td>
    </tr>

    <tr>
      <td>
        `method`
      </td>

      <td>
        `string`
      </td>

      <td>
        The HTTP method that was used.
      </td>
    </tr>

    <tr>
      <td>
        `cause?`
      </td>

      <td>
        `Error`
      </td>

      <td>
        The cause of the error.
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`FetchError`

#### Overrides

[`BaseError`](BaseError).[`constructor`](BaseError#constructor)

## Properties

<table>
  <thead>
    <tr>
      <th align="left">Property</th>
      <th align="left">Type</th>
      <th align="left">Default value</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <a id="name" /> `name`
      </td>

      <td>
        `string`
      </td>

      <td>
        `"FetchError"`
      </td>
    </tr>

    <tr>
      <td>
        <a id="version" /> `version`
      </td>

      <td>
        `string`
      </td>

      <td>
        `VERSION`
      </td>
    </tr>

  </tbody>
</table>