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;
20 @SuppressWarnings(
"unused")
33 Preconditions.checkNotNull(endpoint,
"JHttpEndpoint is null!");
35 return httpClient.execute(endpoint, query);
36 }
catch (Exception e) {
37 throw new InvocationException(format(
"Exception occurred during execution of query %s to endpoint %s.", query, endpoint), e);