Stringifies an error for logging or display purposes.
The error to stringify, can be an Error object, string, or any other type.
A string representation of the error, including stack trace if available.
Stringifies an error for logging or display purposes.