Kensuke Sano
05/25/2023, 12:36 PMtry {
dataStore.edit { preferences ->
preferences[idKey] = value
}
} catch (e: IOException) {
Timber.e(e, "Failed to store $idKey $value")
}
russhwolf
05/25/2023, 4:24 PMandroidx.datastore.core.IOException
in common which typaliases to java.io.IOException
on JVM. So if you're not using multiplatform you should be able to use the java type.Kensuke Sano
05/26/2023, 3:40 AM<http://java.io|java.io>.IOException
if not using multiple platforms?