1 package com.griddynamics.jagger.invoker.v2;
3 import com.google.common.base.Preconditions;
4 import com.griddynamics.jagger.invoker.InvocationException;
6 import static java.lang.String.format;
18 @SuppressWarnings(
"unused")
31 Preconditions.checkNotNull(endpoint,
"JHttpEndpoint is null!");
33 return httpClient.execute(endpoint, query);
34 }
catch (Exception e) {
35 throw new InvocationException(format(
"Exception occurred during execution of query %s to endpoint %s.", query, endpoint), e);