(exception = {})
| 70 | } |
| 71 | |
| 72 | function 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 | |
| 81 | function collectEventSearchableText(event) { |
| 82 | const MAX_DEPTH = 4; |
nothing calls this directly
no test coverage detected