Class: BaseError

utils/errorUtil~BaseError()

new BaseError()

Base class for custom errors, enhancing the standard Error with additional features like timestamps.

Source:

Extends

  • Error

utils/errorUtil~BaseError(name, message)

new BaseError(name, message)

Constructs the BaseError instance, adding a timestamp for better error tracking.

Parameters:
Name Type Description
name string

The name of the error.

message string

The detailed error message.

Source: