Skip to content

Commit 061e743

Browse files
committed
Adding comment explaining error rethrowing
1 parent defd60b commit 061e743

File tree

1 file changed

+1
-0
lines changed
  • opamp-client/src/main/java/io/opentelemetry/opamp/client/internal/connectivity/websocket

1 file changed

+1
-0
lines changed

opamp-client/src/main/java/io/opentelemetry/opamp/client/internal/connectivity/websocket/OkHttpWebSocket.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public void close(int code, @Nullable String reason) {
5858
}
5959
} catch (IllegalArgumentException e) {
6060
status.set(Status.RUNNING);
61+
// Re-throwing as this error happens due to a caller error.
6162
throw e;
6263
}
6364
}

0 commit comments

Comments
 (0)