Must be a valid instance of the Error class. If an invalid value is provided, the error will not be processed or sent.
Optional: Must be a valid JSON object and cannot contain functions, undefined, Infinity and NaN as
values, otherwise they will be replaced with null. The fields need to be serializable
using JSON.stringify. The resulting event will contain the provided fields, and is
modified with additional properties, thus also empty objects are valid. Only properties
prefixed with event_properties., the duration property and the start_time property are
allowed. String properties are limited to 5000 characters, exceeding characters are cut off.
All event property keys must contain only alphabetic characters, numbers,
underscores or dots. Each dot must be followed by an alphabetic character. Each underscore
must be followed by an alphabetic character or number.
This function is only available if the Error module is enabled