<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [motion-sdk](./motion-sdk.md) &gt; [FetchError](./motion-sdk.fetcherror.md) &gt; [(constructor)](./motion-sdk.fetcherror._constructor_.md)

## FetchError.(constructor)

Constructs a new instance of the `FetchError` class

**Signature:**

```typescript
constructor(
    cause: unknown, 
    request: {
        input: string | URL | globalThis.Request;
        init?: RequestInit;
    });
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

cause


</td><td>

unknown


</td><td>


</td></tr>
<tr><td>

request


</td><td>

{ input: string \| URL \| globalThis.Request; init?: RequestInit; }


</td><td>


</td></tr>
</tbody></table>
