Error

public enum Error : UInt32, CaseIterable, Codable

Error corresponding to the offline search operation.

  • Unreachable SDKOptions.persistentMapStoragePath or 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.getInitialPersistentMapStatus to get the status of the map and check maploader.PersistentMapStatus for 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.repairPersistentMap to 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 call MapDownloader.repairPersistentMap to retry index generation.

    Declaration

    Swift

    case operationCancelled
  • Internal error occurred.

    Declaration

    Swift

    case internalError