빈 구멍 채우기

[RxJava] io.reactivex.exceptions.OnErrorNotImplementedException

⭐⭐기록 2021. 4. 22. 18:31

이슈를 확인했다. 

 

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 
 

ReactiveX/RxJava

RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM. - ReactiveX/RxJava

github.com

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 알림을 가로채는 방식으로 해당 이슈를 제거할 수 있습니다.