mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Don't unnecessarily wrap IOExceptions in UncaughtExceptionInterceptor
This commit is contained in:
parent
2debbc0a10
commit
5bd2190980
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@ class UncaughtExceptionInterceptor : Interceptor {
|
||||||
return try {
|
return try {
|
||||||
chain.proceed(chain.request())
|
chain.proceed(chain.request())
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
if (e is IOException) {
|
||||||
|
throw e
|
||||||
|
} else {
|
||||||
throw IOException(e)
|
throw IOException(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue