docs/typeioc.argumenterror.(constructor).md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [typeioc](./typeioc.md) > [ArgumentError](./typeioc.argumenterror.md) > [(constructor)](./typeioc.argumenterror.(constructor).md)
## ArgumentError.(constructor)
Constructor
<b>Signature:</b>
```typescript
constructor(argumentName: string, params?: {
message?: string;
data?: {};
});
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| argumentName | <code>string</code> | argument name |
| params | <code>{</code><br/><code> message?: string;</code><br/><code> data?: {};</code><br/><code> }</code> | optional additional information about the error |