All Projects → JessYanCoding → Rxerrorhandler

JessYanCoding / Rxerrorhandler

Licence: apache-2.0
🗑 Error Handle Of Rxjava

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Rxerrorhandler

Mvpframes
整合大量主流开源项目并且可高度配置化的 Android MVP 快速集成框架,支持 AndroidX
Stars: ✭ 100 (-37.89%)
Mutual labels:  rxjava, mvparms
Wanandroid
🐔🏀【停止维护,已使用Jetpack+Mvvm重构】根据鸿神提供的WanAndroid开放Api来制作的产品级玩安卓App,采用Kotlin语言,基于Material Design+AndroidX +MVP+RxJava+Retrofit等框架开发,注释超详细,方便大家练手
Stars: ✭ 674 (+318.63%)
Mutual labels:  rxjava, mvparms
Androidproject
Android 技术中台,但愿人长久,搬砖不再有
Stars: ✭ 4,398 (+2631.68%)
Mutual labels:  rxjava, mvparms
Mvparms
⚔️ A common architecture for Android applications developing based on MVP, integrates many open source projects, to make your developing quicker and easier (一个整合了大量主流开源项目高度可配置化的 Android MVP 快速集成框架).
Stars: ✭ 10,146 (+6201.86%)
Mutual labels:  rxjava, mvparms
Lgank
Beautiful client of Gank.io 优雅的干货客户端
Stars: ✭ 151 (-6.21%)
Mutual labels:  rxjava
Taskchain
TaskChain Control Flow framework. Helps facilitate running tasks on an application's "Main Thread" (such as a game), and tasks off the main (async).
Stars: ✭ 143 (-11.18%)
Mutual labels:  rxjava
Android Template
Android app starter template
Stars: ✭ 141 (-12.42%)
Mutual labels:  rxjava
Rxfirebase
RxJava binding APIs for Firebase.
Stars: ✭ 143 (-11.18%)
Mutual labels:  rxjava
Rxlowpoly
A RxJava based library using native code to convert images to Lowpoly for Android
Stars: ✭ 160 (-0.62%)
Mutual labels:  rxjava
Iquephoto
Android Image Editor Application.
Stars: ✭ 156 (-3.11%)
Mutual labels:  rxjava
Jd Mall Master
一款高仿京东商城的UI,基于MVP的Retrofit2(okhttp3)+rxjava+dagger2+greendao+glide。该项目系仿京东商城,属于独立开发者作品,仅供参考学习,拒绝做一切商业用途,如有侵权,请告知删除
Stars: ✭ 151 (-6.21%)
Mutual labels:  rxjava
Dagger2
Kotlin Dagger2 example project
Stars: ✭ 145 (-9.94%)
Mutual labels:  rxjava
Retrofiturlmanager
🔮 Let Retrofit support multiple baseUrl and can be change the baseUrl at runtime (以最简洁的 Api 让 Retrofit 同时支持多个 BaseUrl 以及动态改变 BaseUrl).
Stars: ✭ 1,961 (+1118.01%)
Mutual labels:  mvparms
Beaver
Android MVVM + Dagger 2 (Hilt) + JetPack project template
Stars: ✭ 144 (-10.56%)
Mutual labels:  rxjava
Rxfiddle
Visualize your Observables
Stars: ✭ 157 (-2.48%)
Mutual labels:  rxjava
Moemusic
一款基于萌否网站api的音乐管理软件
Stars: ✭ 143 (-11.18%)
Mutual labels:  rxjava
Android Developer Roadmap
Android Developer Roadmap - A complete roadmap to learn Android App Development
Stars: ✭ 2,170 (+1247.83%)
Mutual labels:  rxjava
Rxbonjour
⚠️ THIS PROJECT IS ARCHIVED. No further development is scheduled.
Stars: ✭ 153 (-4.97%)
Mutual labels:  rxjava
Mvvmrxjavaretrofitsample
MVVM RxJava Retrofit Sample
Stars: ✭ 148 (-8.07%)
Mutual labels:  rxjava
Kotlin Android Examples
Stars: ✭ 146 (-9.32%)
Mutual labels:  rxjava

RxErrorHandler

Jcenter Build Status API License Author QQ-Group

Error Handle Of Rxjava

Download

implementation 'me.jessyan:rxerrorhandler:2.1.1' //rxjava2

implementation 'me.jessyan:rxerrorhandler:1.0.1' //rxjava1

Initialization

  RxErrorHandler rxErrorHandler = RxErrorHandler 
                .builder()
                .with(this)
                .responseErrorListener(new ResponseErrorListener() {
                    @Override
                    public void handleResponseError(Context context, Throwable t) {
                        if (t instanceof UnknownHostException) {
                            //do something ...
                        } else if (t instanceof SocketTimeoutException) {
                            //do something ...
                        } else {
                            //handle other Exception ...
                        }
                        Log.w(TAG, "Error handle");
                    }
                }).build();

Usage

  Observable
            .error(new Exception("Error"))
            .retryWhen(new RetryWithDelay(3, 2))//retry(http connect timeout) 
            .subscribe(new ErrorHandleSubscriber<Object>(rxErrorHandler) {
                    @Override
                    public void onNext(Object o) {

                    }

                });

  //Backpressure
  Flowable
          .error(new Exception("Error"))
          .retryWhen(new RetryWithDelayOfFlowable(3, 2))//retry(http connect timeout)
          .subscribe(new ErrorHandleSubscriberOfFlowable<Object>(rxErrorHandler) {
                   @Override
               public void onNext(Object o) {

                  }
               });

About Me

License

 Copyright 2016, jessyan               
  
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at   

       http://www.apache.org/licenses/LICENSE-2.0  

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License. 
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].