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.

  • failedToDecodeCounter: A Counter couldn't be created from the decoded Map.

  • 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.

  • failedToCopyAttachment: The attachment copy failed.

  • attachmentCopyTargetAlreadyExists: The target file for the attachment copy already exists.

  • invalidCrdtType: An invalid CRDT type was encountered.

  • invalidValueForCrdt: An invalid value was encountered for a corresponding CRDT type.

Types

Link copied to clipboard

The target file for the attachment copy already exists.

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

An error occurred with the storage backend (LMDB).

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

The document could not be found.

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

The attachment copy failed.

Link copied to clipboard
data class FailedToDecodeCounter(val message: String) : DittoError.StoreErrorReason

A Counter couldn't be created from the decoded Map.

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

The document could not be decoded.

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

The value could not be decoded.

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

The provided value could not be encoded.

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

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

Link copied to clipboard
data class InvalidCrdtType(val message: String) : DittoError.StoreErrorReason

An invalid CRDT type was encountered.

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

The live query has not obtained a valid ID.

Link copied to clipboard
data class InvalidValueForCrdt(val message: String) : DittoError.StoreErrorReason

An invalid value was encountered for a corresponding CRDT type.

Link copied to clipboard
object NoIDPresentInDocument : DittoError.StoreErrorReason

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

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

Compilation of the provided query failed.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard