public class ErrorInterceptor extends Object implements okhttp3.Interceptor
| Constructor and Description |
|---|
ErrorInterceptor(boolean logSensitiveData) |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain)
Intercepts chain to check for unsuccessful requests.
|
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.Interceptorchain - provided by the framework to checkIOException - will get thrown if response code is unsuccessfulCopyright © 2026 Contentful, GmbH.. All rights reserved.