Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
io.realm.mongodb.sync

Interface SyncSession.ErrorHandler

Enclosing class:

SyncSession

Interface used to report any session errors.

Tip

Modificador y Tipo
Método y descripción

public void

Callback for errors on a session object.

public void onError (
)

Callback for errors on a session object. It is not allowed to throw an exception inside an error handler. If the operations in an error handler can throw, it is safer to catch any exception in the error handler. When an exception is thrown in the error handler, the occurrence will be logged and the exception will be ignored.

Parámetros

  • session - SyncSession en la que ocurrió este error.

  • error - type of error.

Volver

SyncSession.ClientResetHandler

En esta página