In case of an error in the SDKs, custom events are fired, informing the
eventIdand also the reason for the error.
Types of events triggered by the SDK.
Triggered when an error occurs in some validation performed by the SDK.
Triggered when an error occurs that is not handled by the SDK.
sdk.addEventListener('capture_invalid', (e) => console.log(e.detail));
The return will be a CustomEvent object containing the details and properties of the event.