public class ErrorInterceptor
extends java.lang.Object
implements okhttp3.Interceptor
| Constructor and Description |
|---|
ErrorInterceptor() |
| 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 java.io.IOException
intercept in interface okhttp3.Interceptorchain - provided by the framework to checkjava.io.IOException - will get thrown if response code is unsuccessfulCopyright © 2019 Contentful, GmbH.. All Rights Reserved.