A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mongodb.com/docs/atlas/device-sdks/sdk/java/sync/handle-sync-errors/ below:

Handle Sync Errors - Java SDK - Atlas Device SDKs

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