oday
10/24/2022, 2:25 PMJeff Lockhart
10/24/2022, 3:45 PM@Throws annotation, with the exception types that Kotlin should catch and propagate as checked exceptions. In this case, using Exception::class tells Kotlin to catch and propagate all Exception types as checked exceptions in Swift.oday
10/24/2022, 3:47 PModay
10/24/2022, 3:47 PMJeff Lockhart
10/24/2022, 3:48 PModay
10/24/2022, 3:49 PMJeff Lockhart
10/24/2022, 3:50 PMsuspend function, it will propagate CancellationException automatically, without the explicit annotation. But any other expected exception type needs to be declared.