![]() Any idea why there is no error/exception details in the Logcat?īelow is the screenshot of the Logcat (API Key is hidden) - PROCESS STARTED (17889) for package. The only error I got is "FATAL EXCEPTION: main". ![]() ![]() For some reason Android Studio's Logcat doesn't show any error messages. The cause of the crash is due to IOException (connection is set to airplane mode), and can be handled by using a supervisor scope. It.copy(userMessage = e.localizedMessage ?: "Unexpected error occurs") TrendingMovies = apiResponseHandler(trendingMoviesResponse) PopularMovies = apiResponseHandler(popularMoviesResponse), NowPlaying = apiResponseHandler(nowPlayingResponse), Val trendingMoviesResponse = trendingMovies.await() Val popularMoviesResponse = popularMovies.await() Val nowPlayingResponse = nowPlaying.await() Language: String? = null, page: Int? = null, region: String? = null, timeWindow: String No additional code is added in both usecase and repository. While repository is only for call from the Api. For reference: Usecase is only for communication with repository. Problem: Why is there no exception message when app crashes?īelow is the code that causes the error.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |