I was trying something like this but noticed that ...
# coroutines
m
I was trying something like this but noticed that the exception is already unwrapped at this point.
Copy code
coroutineContext[Job]?.invokeOnCompletion {
        if(it is CancellationException){
            call.cancel(it.message,it.cause ?: it)
        }
    }
add a CoroutineExceptionHandler to your context
d
That's not a cancellation handler @withoutclass. Cancellation exceptions are considered "normal".
w
Ah, my mistake.