์ด์๋ฅผ ํ์ธํ๋ค.
Fatal Exception: io.reactivex.exceptions.OnErrorNotImplementedException
The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling
OnErrorNotImplementedException
This indicates that an Observable tried to call its observer’s onError() method, but that no such method existed. You can eliminate this by either fixing the Observable so that it no longer reaches an error condition, by implementing an onError handler in the observer, or by intercepting the onError notification before it reaches the observer by using one of the operators described elsewhere on this page.
Observable์ด observer์ onError() ๋ฉ์๋๋ฅผ ํธ์ถํ๋ ค๊ณ ํ์ผ๋ ์ด ๋ฉ์๋๊ฐ ์กด์ฌํ์ง ์์ต๋๋ค. 1) ์๋ฌ ์กฐ๊ฑด์ผ๋ก ์ง์ ํ์ง ์๋๋ก Observable์ ์์ ํ๊ฑฐ๋, 2) observer์ onError ํธ๋ค๋ฌ๋ฅผ ๊ตฌํํ๊ฑฐ๋, 3) observer์ ๋๋ฌํ๊ธฐ ์ ์ ๋ค๋ฅธ ์ฐ์ฐ์๋ฅผ ์ฌ์ฉํด onError ์๋ฆผ์ ๊ฐ๋ก์ฑ๋ ๋ฐฉ์์ผ๋ก ํด๋น ์ด์๋ฅผ ์ ๊ฑฐํ ์ ์์ต๋๋ค.
'๋น ๊ตฌ๋ฉ ์ฑ์ฐ๊ธฐ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ฝ์ง][Android Studio]์ ํ๋ก์ ํธ ๋น๋ ์คํจ. / navigation.json (์ง์ ๋ ๊ฒฝ๋ก๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค) (0) | 2021.06.04 |
---|---|
[Kotlin] ํด๋ ์ง์ฐ๊ธฐ (0) | 2021.05.10 |
[Kotlin] Repository์์๋ LiveData ๋ณด๋ค๋ Flow ๊ฐ ์ ํฉํ๋ค. (0) | 2021.04.20 |
[Kotlin Coroutine] Flow - 1 (0) | 2021.04.07 |
[Kotlin Coroutines] Job (0) | 2021.04.01 |