CorruptionException


public final class CorruptionException extends IOException

java.lang.Object
   โ†ณ kotlin.Throwable
     โ†ณ kotlin.Exception
       โ†ณ androidx.datastore.core.IOException
         โ†ณ androidx.datastore.core.CorruptionException

A subclass of IOException that indicates that the file could not be de-serialized due to data format corruption. This exception should not be thrown when the IOException is due to a transient IO issue or permissions issue.

Summary

Public constructors

Public constructors

CorruptionException

Added in 1.0.0
public CorruptionException(@NonNull String message, Throwable cause)