Docs Menu

Interface SyncSession.ErrorHandler

On this page

  • io.realm.mongodb.sync
  • Method Summary
  • Method Detail
  • onError

Enclosing class:


Interface used to report any session errors.

See also:
Modifier and Type
Method and Description
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.


  • session - SyncSession this error happened on.
  • error - type of error.
←  Interface SyncSession.ClientResetHandlerEnum SyncSession.State →
Give Feedback
© 2022 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.