JessYanCoding / Rxerrorhandler
Licence: apache-2.0
🗑 Error Handle Of Rxjava
Stars: ✭ 161
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
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
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
Rxlowpoly
A RxJava based library using native code to convert images to Lowpoly for Android
Stars: ✭ 160 (-0.62%)
Mutual labels: rxjava
Jd Mall Master
一款高仿京东商城的UI,基于MVP的Retrofit2(okhttp3)+rxjava+dagger2+greendao+glide。该项目系仿京东商城,属于独立开发者作品,仅供参考学习,拒绝做一切商业用途,如有侵权,请告知删除
Stars: ✭ 151 (-6.21%)
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
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
RxErrorHandler
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
- Email: [email protected]
- Home: http://jessyan.me
- 掘金: https://juejin.im/user/57a9dbd9165abd0061714613
- 简书: https://www.jianshu.com/u/1d0c0bc634db
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].