StorageException

Reading or writing local storage failed, for reason.

The data layer throws it in place of the storage library's own exception, so a caller can tell the failures apart without depending on DataStore or SQLite. :library:core:datastore translates those exceptions into this one, and the UI layer turns it into text. The original exception stays as cause for reporting.

It is an IOException, so code that already catches I/O failures still catches it.

Constructors

Link copied to clipboard
constructor(reason: StorageException.Reason, cause: Throwable? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard