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

[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [CustomError](./puppeteer.customerror.md) &gt; [(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 |  |