StoreErrorReason
public enum StoreErrorReason
The possible underlying reasons a .storeError
error occurs.
- backendError: An error occurred with the storage backend (LMDB).
- documentContentEncodingFailed: The provided document content failed to be encoded.
- nonStringKeyInDocument: The document, represented as a CBOR map, had a key that was not a string.
- invalidDocumentStructure: The document’s internal representation was invalid.
- failedToDecodeData: Data could not be decoded.
- failedToGetDocumentData: The document’s data at the specified path could not be obtained.
- failedToGetDocumentIDData: The document ID’s data at the specified path could not be obtained.
- failedToDecodeDocument: The document could not be decoded.
- documentNotFound: The document could not be found.
- attachmentDataRetrievalError: The attachment data failed to be retrieved.
- attachmentFileCopyError: The attachment file failed to be copied.
- queryError: The query was invalid.
- quaryArgumentsInvalid: The query arguments were invalid.
- invalidCRDTType: An invalid CRDT type was encountered.
- invalidValueForCRDT: An invalid value was encountered for a corresponding CRDT type.
-
An error occurred with the storage backend (LMDB).
Declaration
Swift
case backendError(message: String)
-
The provided document content failed to be encoded.
Declaration
Swift
case documentContentEncodingFailed(error: Error?)
-
The document, represented as a CBOR map, had a key that was not a string.
Declaration
Swift
case nonStringKeyInDocument(key: CBOR)
-
The document’s internal representation was invalid.
Declaration
Swift
case invalidDocumentStructure(cbor: CBOR)
-
Data could not be decoded.
Declaration
Swift
case failedToDecodeData(error: Error?, data: [UInt8])
-
The document’s data at the specified path could not be obtained.
Declaration
Swift
case failedToGetDocumentData(path: String)
-
The document ID’s data at the specified path could not be obtained.
Declaration
Swift
case failedToGetDocumentIDData(path: String)
-
The document could not be decoded.
Declaration
Swift
case failedToDecodeDocument(error: Error)
-
The document could not be found.
Declaration
Swift
case documentNotFound
-
The attachment data failed to be retrieved.
Declaration
Swift
case attachmentDataRetrievalError(error: Error)
-
The attachment file failed to be copied.
Declaration
Swift
case attachmentFileCopyError(error: Error)
-
The query was invalid.
Declaration
Swift
case queryError(message: String)
-
The query arguments were invalid.
Declaration
Swift
case queryArgumentsInvalid
-
An invalid CRDT type was encountered.
Declaration
Swift
case invalidCRDTType(message: String)
-
An invalid value was encountered for a corresponding CRDT type.
Declaration
Swift
case invalidValueForCRDT(message: String)