본문 바로가기 메뉴 바로가기

taetae98

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

taetae98

검색하기 폼
  • 분류 전체보기 (58)
    • Android (31)
      • Widget (4)
      • Lifecycle (4)
      • Coroutine (9)
      • RxJava (8)
      • Gradle (4)
    • Flutter (6)
      • Dart (6)
    • CS (17)
      • Clean Code (17)
    • Git (4)
  • 방명록

retryWhen (1)
Android RxJava - 예외 처리

RxJava 예외 처리 기본적으로 Observer의 onError 함수를 통해서 에러를 처리할 수 있습니다. onError로 에러를 처리하는 경우 스트림은 데이터 발행을 중단하며 Observer는 onComplete 호출을 하지 못합니다. fun onError() { Observable.create { emitter -> emitter.onNext("Message 1") emitter.onNext("Message 2") throw Exception("Something Wrong") }.subscribe({ println(it) }, { println("Error : $it") }) } Message 1 Message 2 Error : java.lang.Exception: Something Wrong Rx..

Android/RxJava 2022. 3. 8. 18:01
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Exception
  • 함수
  • commit
  • null
  • 연산자
  • DART
  • TDD
  • 보이스카우트 규칙
  • DSL
  • Flutter
  • 클린 코드
  • Kotlin
  • ConcatAdapter.Config
  • ViewModelProvider
  • Flowable
  • gradle
  • git
  • rxjava
  • Coroutine
  • isActive
  • clean code
  • observable
  • ViewModelStoreOwner
  • Widget
  • Android
  • ConcatAdapter
  • 코루틴
  • viewmodel
  • CancellationException
  • 클린코드
more
«   2026/02   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바