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.
- failedToDecodeDocumentID: The document’s ID could not be decoded.
- nonStringKeyInDocument: The document, represented as a CBOR map, had a key that was not a string.
- invalidDocumentStructure: The document’s internal representation was invalid.
- failedToDecodeDocumentData: The document’s data could not be decoded.
- failedToGetDocumentData: The document’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.
-
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’s ID could not be decoded.
Declaration
Swift
case failedToDecodeDocumentID(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)
-
The document’s data could not be decoded.
Declaration
Swift
case failedToDecodeDocumentData(error: Error?, data: [UInt8])
-
The document’s data at the specified path could not be obtained.
Declaration
Swift
case failedToGetDocumentData(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)