package com.tofly.latte_core.net.exception;

import android.os.Build;

import androidx.annotation.RequiresApi;

import io.reactivex.Observable;
import io.reactivex.functions.Function;

/**
 *HttpResponseFnc处理以下两类错误
 * 1.http请求相关错误。例如 403 404 socket timeout等
 * 2.应用数据错误会抛出RuntimeException,最后也会走到和这个函数统一处理
 * */
@RequiresApi(api = Build.VERSION_CODES.N)
public class HttpErrorHanlder<T> implements Function<Throwable, Observable<T>> {

    @Override
    public Observable<T> apply(Throwable throwable) {
        return null;
    }
}
