Skip to content

Instantly share code, notes, and snippets.

View rqbazan's full-sized avatar
🦉
making things over the web

Ricardo Q. Bazan rqbazan

🦉
making things over the web
View GitHub Profile
@rqbazan
rqbazan / .treehouse
Last active December 28, 2017 01:35 — forked from ErikGartner/.treehouse
Pretty's Family dTree
1.3.1
@rqbazan
rqbazan / RxJava2ErrorHandlingCallAdapterFactory.java
Last active September 7, 2017 17:30 — forked from joen93/RxErrorHandlingCallAdapterFactory.java
RxJava2 and Retrofit 2.2.0 compatible factory, which wraps the {@link RxJava2CallAdapterFactory} and takes care of the error conversion.
/**
* Reimplemented by RqBazan on 02/07/17.
*
* RxJava2 and Retrofit 2.2.0 compatible factory,
* which wraps the {@link RxJava2CallAdapterFactory} and takes care of the error conversion.
*
* Based on: https://github.com/square/retrofit/issues/1102#issuecomment-241250796
*/
public class RxJava2ErrorHandlingCallAdapterFactory extends CallAdapter.Factory {
private final RxJava2CallAdapterFactory mOriginalCallAdapterFactory;