android-components / mozilla.components.browser.storage.sync / PlacesStorage / syncAndHandleExceptions

syncAndHandleExceptions

protected inline fun syncAndHandleExceptions(syncBlock: () -> Unit): SyncStatus (source)

Runs a syncBlock, re-throwing any panics that may be encountered.

Return SyncStatus.Ok on success, or SyncStatus.Error on non-panic PlacesException.