Skip to content

Commit 9201bd3

Browse files
authored
Add handled=true to SentryCoroutineExceptionHandler (#4329)
1 parent 49517e1 commit 9201bd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry-kotlin-extensions/src/main/java/io/sentry/kotlin/SentryCoroutineExceptionHandler.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public open class SentryCoroutineExceptionHandler(private val scopes: IScopes =
2121
override fun handleException(context: CoroutineContext, exception: Throwable) {
2222
val mechanism = Mechanism().apply {
2323
type = "CoroutineExceptionHandler"
24+
isHandled = true
2425
}
2526
// the current thread is not necessarily the one that threw the exception
2627
val error = ExceptionMechanismException(mechanism, exception, Thread.currentThread())

0 commit comments

Comments
 (0)