Class ErrorHandlingExecutorCallAdapterFactory

java.lang.Object
retrofit2.CallAdapter.Factory
com.netflix.spinnaker.kork.retrofit.ErrorHandlingExecutorCallAdapterFactory

public class ErrorHandlingExecutorCallAdapterFactory extends retrofit2.CallAdapter.Factory
RetrofitError and ErrorHandler are no longer present in retrofit2. So this class helps to achieve similar logic as retrofit and handle exceptions globally in retrofit2. This can be achieved by setting this class as CallAdapterFactory at the time of Retrofit client creation.