processTroubleShootingException method
Implementation
void processTroubleShootingException(Visitor? v, Object error) {
Map<String, String> criticalJson = {};
if (v != null) {
// Add context
criticalJson.addEntries(_createTRContext(v).entries);
}
/// Add ids
criticalJson.addEntries(_createTrioIds(v).entries);
// Add error message
criticalJson.addEntries({"error.message": error.toString()}.entries);
// Send TS reporting
_sendTroubleShootingReport(TroubleshootingHit(
visitorId, CriticalPoints.ERROR_CATCHED.name, criticalJson));
}