File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5 Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 18
18
import com .google .api .client .http .LowLevelHttpResponse ;
19
19
import java .io .IOException ;
20
20
import java .util .concurrent .TimeUnit ;
21
+ import org .apache .hc .client5 .http .ClientProtocolException ;
21
22
import org .apache .hc .client5 .http .classic .HttpClient ;
22
23
import org .apache .hc .client5 .http .classic .methods .HttpUriRequestBase ;
23
24
import org .apache .hc .client5 .http .config .RequestConfig ;
@@ -69,7 +70,7 @@ public LowLevelHttpResponse execute() throws IOException {
69
70
try {
70
71
target = RoutingSupport .determineHost (request );
71
72
} catch (HttpException e ) {
72
- throw new RuntimeException ("The request's host is invalid." , e );
73
+ throw new ClientProtocolException ("The request's host is invalid." , e );
73
74
}
74
75
// we use a null context so the client creates the default one internally
75
76
ClassicHttpResponse httpResponse = httpClient .executeOpen (target , request , null );
You can’t perform that action at this time.
0 commit comments