<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [puppeteer](./puppeteer.md) > [CustomError](./puppeteer.customerror.md) > [(constructor)](./puppeteer.customerror._constructor_.md) ## CustomError.(constructor) Constructs a new instance of the `CustomError` class <b>Signature:</b> ```typescript constructor(message: string); ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | message | string | |