Serializes an error into a JSON string.
The error to stringify.
A JSON string representing the error.
Serializes an error into a JSON string.