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. are allowed. The duration property is not supported
for exception events and will be dropped if provided. String properties are limited to
5000 characters, exceeding characters are cut off.
All event property key names must match the naming rules defined by VALID_KEY_REGEX.
This function is only available if the Error module is enabled