package com.duben.library.net.neterror;

import rx.Observable;
import rx.functions.Func1;

/**
 * 描述：HttpResponseFunc
 * 作者：孟崔广
 * 时间：2018/1/10 17:51
 * 邮箱：mengcuiguang@cashbang.cn
 */
public class HttpResponseFunc<T> implements Func1<java.lang.Throwable, Observable<T>> {
    @Override
    public Observable<T> call(java.lang.Throwable t) {
        return Observable.error(CashException.handleException(t));
    }
}
