Error
public enum Error : UInt32, CaseIterable, Codable
Error corresponding to the offline search operation.
-
Unreachable
SDKOptions.persistentMapStoragePathor lacking required permission to generate index inside.Declaration
Swift
case invalidPersistentPath -
Failed to get installed regions in protected cache. Any previous available index would be deleted when this error occurs. Use method
MapDownloader.getInitialPersistentMapStatusto get the status of the map and checkmaploader.PersistentMapStatusfor exact healing procedure for specific status.Declaration
Swift
case mapError -
Unable to generate index due to failed database operation. Any previous available index would be deleted when this error occurs. Call
MapDownloader.repairPersistentMapto retry index generation.Declaration
Swift
case databaseError -
Indexing operation cancelled due to OS killing the application or when a new indexing operation is invoked by SDK after finishing a map operation while the previous indexing operation was in progress. Any previous available index would be deleted when this error occurs. In later case, SDK would finish the latest indexing operation successfully and it can be tracked through
OfflineSearchIndexListener, otherwise callMapDownloader.repairPersistentMapto retry index generation.Declaration
Swift
case operationCancelled -
Internal error occurred.
Declaration
Swift
case internalError