Creates an instance of ErrorObject.
A unique identifier for the error.
Optional description: stringAn optional description of the error.
Private _getRetrieves the current stack trace as a string.
This method uses the StackTrace.get() function to obtain an array of stack frames,
converts each stack frame to a string, and joins them with newline characters.
A promise that resolves to the stringified stack trace.
Represents an error object with a key, description, timestamp, and stack trace. Implements the
AbstractErrorObjectandParamsinterfaces.Implements
Implements