You can configure an error handler to detect and respond to any errors that occur in the Sync process. To define an error handler, pass an ErrorHandler to the SyncConfiguration.Builder.errorHandler() builder method:
SyncConfiguration config = new SyncConfiguration.Builder(user, partition) .errorHandler((session, error) -> { }).build();
val user = app.currentUser()val config = SyncConfiguration.Builder(user, partition) .errorHandler { session, error -> } .build()
Tip
For a list of common Device Sync errors and how to handle them, refer to Sync Errors in the App Services Device Sync documentation.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4