Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public final void onResponse(ResponseT response) {
@Override
public final void onError(Throwable throwable) {
if (!isClosed.compareAndSet(false, true)) {
logException("Received error after the stream is closed");
logException("Received error after the stream is closed", throwable);
return;
}

Expand Down Expand Up @@ -113,6 +113,10 @@ private void logException(String message) {
LOGGER.log(Level.WARNING, message, new IllegalStateException(message));
}

private void logException(String message, Throwable cause) {
LOGGER.log(Level.WARNING, message, new IllegalStateException(message, cause));
}

protected abstract void onStartImpl(StreamController streamController);

protected abstract void onResponseImpl(ResponseT response);
Expand Down