[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [InvalidArgumentError](./js-utils.invalidargumenterror.md) > [(constructor)](./js-utils.invalidargumenterror._constructor_.md) ## InvalidArgumentError.(constructor) Constructs a new instance of the `InvalidArgumentError` class Signature: ```typescript constructor(msg?: string, ...nested: Array); ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | msg | string | (Optional) | | nested | Array<Error> | |