io.sphere.sdk.client.HttpResponseExceptionResponsibility Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commercetools-java-client-core Show documentation
Show all versions of commercetools-java-client-core Show documentation
This SDK is announced to be deprecated latest by 31 December 2022, please follow more details on SDK deprecation plan https://docs.commercetools.com/api/releases/2021-08-31-announced-long-term-support-plan-for-commercetools-sdks. We recommend you to use our new SDK here https://docs.commercetools.com/sdk/jvm-sdk#java-sdk-v2.
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;
}
}