// Path: code/base/src/main/java/vn/eazy/base/mvp/intergration/handler/error/listener/ResponseErrorListener.java
// public interface ResponseErrorListener {
//     void handleResponseError(Context context, Throwable t);
// 
//     ResponseErrorListener EMPTY = new ResponseErrorListener() {
//         @Override
//         public void handleResponseError(Context context, Throwable t) {
// 
//         }
//     };
// }


import android.content.Context;
import vn.eazy.base.mvp.intergration.handler.error.listener.ResponseErrorListener;
package vn.eazy.base.mvp.intergration.handler.error;



/**
 * Created by harryle on 6/23/17.
 */

public class RxErrorHandler {
    public final String TAG = this.getClass().getSimpleName();
    private ErrorHandlerFactory mHandlerFactory;

    public RxErrorHandler(Builder builder) {
        this.mHandlerFactory = builder.errorHandlerFactory;
    }


    public static Builder builder() {
        return new Builder();
    }

    public ErrorHandlerFactory getHandlerFactory() {
        return mHandlerFactory;
    }

    public static final class Builder {
// Path: code/base/src/main/java/vn/eazy/base/mvp/intergration/handler/error/listener/ResponseErrorListener.java
// public interface ResponseErrorListener {
//     void handleResponseError(Context context, Throwable t);
// 
//     ResponseErrorListener EMPTY = new ResponseErrorListener() {
//         @Override
//         public void handleResponseError(Context context, Throwable t) {
// 
//         }
//     };
// }


// Path: code/base/src/main/java/vn/eazy/base/mvp/intergration/handler/error/RxErrorHandler.java
import android.content.Context;
import vn.eazy.base.mvp.intergration.handler.error.listener.ResponseErrorListener;

package vn.eazy.base.mvp.intergration.handler.error;



/**
 * Created by harryle on 6/23/17.
 */

public class RxErrorHandler {
    public final String TAG = this.getClass().getSimpleName();
    private ErrorHandlerFactory mHandlerFactory;

    public RxErrorHandler(Builder builder) {
        this.mHandlerFactory = builder.errorHandlerFactory;
    }


    public static Builder builder() {
        return new Builder();
    }

    public ErrorHandlerFactory getHandlerFactory() {
        return mHandlerFactory;
    }

    public static final class Builder {
        private Context context;