google-developer-training / basic-android-kotlin-compose-training-race-tracker

Apache License 2.0
31 stars 30 forks source link

Android Basics: Introduction to Coroutines in Kotlin Playground #25

Open alghe-global opened 5 months ago

alghe-global commented 5 months ago

https://developer.android.com/codelabs/basic-android-kotlin-compose-coroutines-kotlin-playground?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-coroutines-kotlin-playground#3

From the output, you can observe that `getTemperature()` throws an exception.

this is not true; from the output it is known only that getWeatherReport function threw an exception - only looking at the source code we know that it was getTemperature() as the throwing of the exception is hard coded