The error to format. It can be an Error
instance, a string, or another object.
Optional
defaultErrorString: string = ''The default error message if the error cannot be formatted.
Optional
opts: { Additional options.
The maximum number of stack trace lines to include.
The formatted error message.
Formats an error object into a string representation.