StoreErrorReason

sealed class StoreErrorReason

The possible underlying reasons a .storeError error occurs.

  • backendError: An error occurred with the storage backend (LMDB).

  • failedToEncodeValue: The value could not be encoded.

  • noIDPresentInDocument: The document did not have an _id when attempting to decode it.

  • failedToDecodeDocument: The document could not be decoded.

  • failedToDecodeValue: The value could not be decoded.

  • queryCompilationFailed: Compilation of the provided query failed.

  • failedToInitialiseDittoDirectory: The directory that Ditto attempted to use for its persisted data could not be initialised.

  • invalidLiveQueryID: The live query has not obtained a valid ID.

  • documentNotFound: The document could not be found.

Types

attachmentCopyTargetAlreadyExists
Link copied to clipboard

The target file for the attachment copy already exists.

backendError
Link copied to clipboard
data class backendError(lmdbError: LMDBError) : DittoError.StoreErrorReason

An error occurred with the storage backend (LMDB).

documentNotFound
Link copied to clipboard
data class documentNotFound(id: DittoDocumentID) : DittoError.StoreErrorReason

The document could not be found.

failedToCopyAttachment
Link copied to clipboard
data class failedToCopyAttachment(error: IOException) : DittoError.StoreErrorReason

The attachment copy failed.

failedToDecodeDocument
Link copied to clipboard
data class failedToDecodeDocument(error: Throwable) : DittoError.StoreErrorReason

The document could not be decoded.

failedToDecodeValue
Link copied to clipboard
data class failedToDecodeValue(error: Throwable) : DittoError.StoreErrorReason

The value could not be decoded.

failedToEncodeValue
Link copied to clipboard
data class failedToEncodeValue(value: Any, error: JsonProcessingException) : DittoError.StoreErrorReason

The provided value could not be encoded.

failedToInitialiseDittoDirectory
Link copied to clipboard
data class failedToInitialiseDittoDirectory(error: Throwable) : DittoError.StoreErrorReason

The directory that Ditto attempted to use for its persisted data could not be initialised.

invalidLiveQueryID
Link copied to clipboard
data class invalidLiveQueryID(id: Int) : DittoError.StoreErrorReason

The live query has not obtained a valid ID.

noIDPresentInDocument
Link copied to clipboard
object noIDPresentInDocument : DittoError.StoreErrorReason

The document did not have an _id when attempting to decode it.

queryCompilationFailed
Link copied to clipboard
data class queryCompilationFailed(query: String) : DittoError.StoreErrorReason

Compilation of the provided query failed.

Inheritors

DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard