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

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.

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

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

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.

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

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

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

An invalid CRDT type was encountered.

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

The live query has not obtained a valid ID.

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

An invalid value was encountered for a corresponding CRDT type.

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
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard
DittoError.StoreErrorReason
Link copied to clipboard