onStorageError

Parameters

onStorageError

Optional callback invoked when a storage operation throws. Return true to retry the failed operation once; return false (or omit) to rethrow. The decision is based on the thrown Exception, for example:

onStorageError = { e -> e is android.database.sqlite.SQLiteException }