public class RetrofitErrorHandler extends Object implements retrofit.ErrorHandler
Interceptor to handle errors thrown by the Strava API.
HTTP error status codes are converted to checked (if recoverable) or unchecked (if not) exceptions and thrown
With each error, Strava also returns a set of error messages which are encapsulated in StravaResponse
| Constructor and Description |
|---|
RetrofitErrorHandler() |
public Throwable handleError(retrofit.RetrofitError cause)
handleError in interface retrofit.ErrorHandlerErrorHandler.handleError(retrofit.RetrofitError)Copyright © 2015 Dan Shannon. All rights reserved.