Skip to content

Commit 151b497

Browse files
authored
Add @throws on SentryOkHttpInterceptor::intercept. (#5654)
Fixes #5653
1 parent d28345f commit 151b497

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Behavioral Changes
6+
7+
- `SentryOkHttpInterceptor::intercept` now throws `IOException`. This is a source-only and Java-only breaking change ([#5654](https://github.com/getsentry/sentry-java/pull/5654))
8+
59
### Fixes
610

711
- Fix potential NPE within `Scope.endSession()` ([#5657](https://github.com/getsentry/sentry-java/pull/5657))

sentry-okhttp/src/main/java/io/sentry/okhttp/SentryOkHttpInterceptor.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public open class SentryOkHttpInterceptor(
7777
}
7878

7979
@Suppress("LongMethod")
80+
@Throws(IOException::class)
8081
override fun intercept(chain: Interceptor.Chain): Response {
8182
var request = chain.request()
8283

0 commit comments

Comments
 (0)