Skip to content

Commit f7848de

Browse files
committed
fix: Use Exception instead
1 parent 1960273 commit f7848de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gax-java/gax/src/main/java/com/google/api/gax/rpc/EndpointContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ public EndpointContext build() throws IOException {
470470
try {
471471
setResolvedServerAddress(parseServerAddress(resolvedEndpoint()));
472472
setResolvedServerPort(parseServerPort(resolvedEndpoint()));
473-
} catch (Throwable throwable) {
473+
} catch (Exception throwable) {
474474
// Server address and server port are only used for observability.
475475
// We should ignore any errors parsing them and not affect the main client requests.
476476
}

0 commit comments

Comments
 (0)