Package io.realm.mongodb.sync
Interface SyncSession.ErrorHandler
-
- Enclosing class:
- SyncSession
public static interface SyncSession.ErrorHandler
Interface used to report any session errors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onError(SyncSession session, AppException error)
Callback for errors on a session object.
-
-
-
Method Detail
-
onError
void onError(SyncSession session, AppException error)
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.- Parameters:
session
-SyncSession
this error happened on.error
- type of error.
-
-