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

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

## ArgumentError.(constructor)

Constructs a new instance of the `ArgumentError` class

**Signature:**

```typescript
constructor(
    argumentName: string, 
    argumentValue: T, 
    message: string);
```

## Parameters

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

Parameter


</th><th>

Type


</th><th>

Description


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

argumentName


</td><td>

string


</td><td>


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

argumentValue


</td><td>

T


</td><td>


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

message


</td><td>

string


</td><td>


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