2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: CustomError.(constructor)
|
|
|
|
---
|
|
|
|
|
|
|
|
# CustomError.(constructor)
|
|
|
|
|
|
|
|
Constructs a new instance of the `CustomError` class
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class CustomError {
|
|
|
|
constructor(message?: string);
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ------ | ----------------- |
|
|
|
|
| message | string | <i>(Optional)</i> |
|