Constructor
new Error(userMessage, description)
Create an error object.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
userMessage |
string
|
The message to display to the user. |
description |
string
|
A detailed description of the error. |