Simple&Natural
Okhttp Interceptor에서 Exception을 catch하지 못하는 이슈 본문
728x90
예전에도 rx사용시 제대로 try-catch 가 작동하지 않았던 이슈가 있었는데
Interceptor에서는 IOException이 아니면 스레드 외부로 throw를 하지 않는 것이 원인이었다.
Handle exceptions thrown by a custom okhttp Interceptor in Kotlin Coroutines
I'm using a custom Interceptor along with Retrofit client in my Android app, that throws an Exception under some specific circumstances. I'm trying to make it work using Kotlin coroutines. The pro...
stackoverflow.com
728x90
'안드로이드(Android) > 이슈 및 해결' 카테고리의 다른 글
ViewPager2 사용 시 ViewModel이 onCleared 된 후 다시 초기화되지 않는 이슈 관련 회고 (0) | 2022.12.22 |
---|---|
Support 의존성을 사용하는 외부 라이브러리의 호환성 조정 방법 (0) | 2022.06.03 |
Kotlin-kapt & ButterKnife 동시 사용 시 null 오류 (0) | 2021.04.29 |
2021-01-04 이슈 (Android Studio Build 관련 문제 해결) (0) | 2021.01.04 |
[Android] HTML 문자열 Unescaping 방법 (0) | 2020.12.15 |