MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / isGenericObjectRejectionException

Function isGenericObjectRejectionException

src/js/modules/sentry-init.js:72–79  ·  view source on GitHub ↗
(exception = {})

Source from the content-addressed store, hash-verified

70}
71
72function isGenericObjectRejectionException(exception = {}) {
73 const mechanismType = toLowerSafe(exception?.mechanism?.type || '');
74 if (mechanismType !== 'onunhandledrejection') return false;
75
76 const exceptionValue = toLowerSafe(exception?.value || '');
77 return exceptionValue.includes('object captured as promise rejection with keys') ||
78 exceptionValue.includes('non-error promise rejection captured with keys');
79}
80
81function collectEventSearchableText(event) {
82 const MAX_DEPTH = 4;

Callers

nothing calls this directly

Calls 1

toLowerSafeFunction · 0.70

Tested by

no test coverage detected