All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.client.HttpResponseExceptionResponsibility Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.client;

import io.sphere.sdk.models.SphereException;
import io.sphere.sdk.http.HttpResponse;

import java.util.function.Function;
import java.util.function.Predicate;

final class HttpResponseExceptionResponsibility {
    private final Predicate predicate;
    private final Function exceptionCreator;

    public HttpResponseExceptionResponsibility(final Predicate predicate, final Function exceptionCreator) {
        this.exceptionCreator = exceptionCreator;
        this.predicate = predicate;
    }

    public Function getExceptionCreator() {
        return exceptionCreator;
    }

    public Predicate getPredicate() {
        return predicate;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy