new BaseError()
Base class for custom errors, enhancing the standard Error with additional features like timestamps.
- Source:
Extends
- Error
Base class for custom errors, enhancing the standard Error with additional features like timestamps.
Constructs the BaseError instance, adding a timestamp for better error tracking.
Name | Type | Description |
---|---|---|
name |
string | The name of the error. |
message |
string | The detailed error message. |