me.jessyan.rxerrorhandler.handler.listener.ResponseErrorListener Java Examples
The following examples show how to use
me.jessyan.rxerrorhandler.handler.listener.ResponseErrorListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClientModule.java From Aurora with Apache License 2.0 | 5 votes |
/** * 提供处理 RxJava 错误的管理器 * * @return */ @Singleton @Provides RxErrorHandler proRxErrorHandler(Application application, ResponseErrorListener listener) { return RxErrorHandler .builder() .with(application) .responseErrorListener(listener) .build(); }
Example #2
Source File: ClientModule.java From MVVMArms with Apache License 2.0 | 5 votes |
@Singleton @Provides RxErrorHandler provideRxErrorHandler(ResponseErrorListener listener) { return RxErrorHandler .builder() .with(mApplication) .responseErrorListener(listener) .build(); }
Example #3
Source File: ClientModule.java From MVPArms with Apache License 2.0 | 5 votes |
/** * 提供处理 RxJava 错误的管理器 * * @param application {@link Application} * @param listener {@link ResponseErrorListener} * @return {@link RxErrorHandler} */ @Singleton @Provides static RxErrorHandler proRxErrorHandler(Application application, ResponseErrorListener listener) { return RxErrorHandler .builder() .with(application) .responseErrorListener(listener) .build(); }
Example #4
Source File: GlobalConfigModule.java From Aurora with Apache License 2.0 | 4 votes |
/** * 提供处理 RxJava 错误的管理器的回调 * * @return */ @Singleton @Provides ResponseErrorListener provideResponseErrorListener() { return mErrorListener == null ? ResponseErrorListener.EMPTY : mErrorListener; }
Example #5
Source File: GlobalConfigModule.java From Aurora with Apache License 2.0 | 4 votes |
public Builder responseErrorListener(ResponseErrorListener listener) {//处理所有RxJava的onError逻辑 this.responseErrorListener = listener; return this; }
Example #6
Source File: RepositoryConfigModule.java From MVVMArms with Apache License 2.0 | 4 votes |
@Singleton @Provides ResponseErrorListener provideResponseErrorListener() { return mErrorListener == null ? ResponseErrorListener.EMPTY : mErrorListener; }
Example #7
Source File: RepositoryConfigModule.java From MVVMArms with Apache License 2.0 | 4 votes |
public Builder responseErrorListener(ResponseErrorListener listener) {//处理所有Rxjava的onError逻辑 this.responseErrorListener = listener; return this; }
Example #8
Source File: GlobalConfigModule.java From MVPArms with Apache License 2.0 | 4 votes |
/** * 提供处理 RxJava 错误的管理器的回调 * * @return */ @Singleton @Provides ResponseErrorListener provideResponseErrorListener() { return mErrorListener == null ? ResponseErrorListener.EMPTY : mErrorListener; }
Example #9
Source File: GlobalConfigModule.java From MVPArms with Apache License 2.0 | 4 votes |
public Builder responseErrorListener(ResponseErrorListener listener) {//处理所有RxJava的onError逻辑 this.responseErrorListener = listener; return this; }