Skip to content

Commit d79261d

Browse files
runningcodeclaude
andcommitted
ref(core): Leave the client report attach catch to the narrowing PR
Narrowing attachReportToEnvelope to IOException is a narrowing, not a boundary, so it moves to the PR that narrows catches. Refs #5513 Refs JAVA-552 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d492676 commit d79261d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎sentry/src/main/java/io/sentry/clientreport/ClientReportRecorder.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import io.sentry.protocol.SentrySpan;
1111
import io.sentry.protocol.SentryTransaction;
1212
import io.sentry.util.ExceptionUtils;
13-
import java.io.IOException;
1413
import java.util.ArrayList;
1514
import java.util.Date;
1615
import java.util.List;
@@ -48,7 +47,7 @@ public ClientReportRecorder(@NotNull SentryOptions options) {
4847
items.add(SentryEnvelopeItem.fromClientReport(options.getSerializer(), clientReport));
4948

5049
return new SentryEnvelope(envelope.getHeader(), items);
51-
} catch (IOException e) {
50+
} catch (Throwable e) {
5251
options.getLogger().log(SentryLevel.ERROR, e, "Unable to attach client report to envelope.");
5352
return envelope;
5453
}

0 commit comments

Comments
 (0)