Package com.dropbox.core.v2.callbacks
Interface DbxGlobalCallbackFactory
-
public interface DbxGlobalCallbackFactory
Client should implement methods in this class to allow for consistent, global handling of route-specific error types, as well as general network errors. Normally, error handling is done on a request-by-request basis. However, it is convenient to handle some error behavior consistently, regardless of the request or the endpoint. For implementing global error handling for general networking errors like an auth error, `createNetworkErrorCallback` should be implemented. For implementing global error handling for route-specific errors, the `createRouteErrorCallback` should be implemented.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DbxNetworkErrorCallback
createNetworkErrorCallback(java.lang.String userId)
<T> DbxRouteErrorCallback<T>
createRouteErrorCallback(java.lang.String userId, T routeError)
-
-
-
Method Detail
-
createRouteErrorCallback
<T> DbxRouteErrorCallback<T> createRouteErrorCallback(java.lang.String userId, T routeError)
-
createNetworkErrorCallback
DbxNetworkErrorCallback createNetworkErrorCallback(java.lang.String userId)
-
-