<lambda>null1// This file was automatically generated from exception-handling.md by Knit tool. Do not edit. 2 package kotlinx.coroutines.guide.exampleSupervision03 3 4 import kotlin.coroutines.* 5 import kotlinx.coroutines.* 6 7 fun main() = runBlocking { 8 val handler = CoroutineExceptionHandler { _, exception -> 9 println("CoroutineExceptionHandler got $exception") 10 } 11 supervisorScope { 12 val child = launch(handler) { 13 println("The child throws an exception") 14 throw AssertionError() 15 } 16 println("The scope is completing") 17 } 18 println("The scope is completed") 19 } 20