MapLoaderError
public enum MapLoaderError : UInt32, CaseIterable, Codable
extension MapLoaderError : Error
Specifies possible errors that may result from map downloading/prefetching.
-
The requested resource is not found.
Declaration
Swift
case resourceNotFound = 1 -
There’s a problem with an ongoing download or update: If an operation is in a paused state, you can resume or cancel it. If no operation is in a paused state: Either wait for active downloads to finish, or cancel existing
sdk.maploader.MapDownloaderrequests and callsdk.maploader.MapDownloader.get_initial_persistent_map_status. If there is a problem, callsdk.maploader.MapDownloader.repair_persistent_mapto repair before continuing with othersdk.maploader.MapDownloaderoperations. This error may occur when an on-going or paused operation prevents the requested task.Declaration
Swift
case notReady -
The request passed invalid arguments.
Declaration
Swift
case invalidArgument -
The request was cancelled (usually by the user).
Declaration
Swift
case operationCancelled -
All tiles of requested regions were already installed, no need for any download.
Declaration
Swift
case alreadyInstalled -
The request exceeded the timeout limit.
Declaration
Swift
case timeOut -
The requested service is unavailable.
Declaration
Swift
case serviceUnavailable -
The access is denied due to invalid credentials.
Declaration
Swift
case accessDenied -
Request limit reached for set a credentials for a particular period of time.
Declaration
Swift
case requestLimitReached -
A network connection error has happened.
Declaration
Swift
case networkConnectionError -
The operation is forbidden, make sure your credentials grant the necessary permissions.
Declaration
Swift
case forbidden -
Downloaded map data is invalid or a
sdk.maploader.RegionIdpassed to the methodsdk.maploader.MapDownloader.delete_regionsis incorrect.Declaration
Swift
case mapDataError -
Received unexpected response from the backend. It means the response is malformed or server returned an internal error. Try repeating the request.
Declaration
Swift
case unexpectedServerResponse -
Error occurred inside the map manager and might be related to network issues. Try repeating the request.
Declaration
Swift
case mapManagerError -
The data to process is incomplete, failed decoding the tile.
Declaration
Swift
case incompleteData -
The conditions to access the service are not satisfied. Check if correct
sdk.maploader.RegionIdwas passed tosdk.maploader.MapDownloader.download_regionsor download for passedsdk.maploader.RegionIdalready started. Further control for started download must be performed throughsdk.maploader.MapDownloaderTask.Declaration
Swift
case serviceAccessFailed -
Internal error occurred.
Declaration
Swift
case internalError -
Online operation is not permitted because offline mode is enabled.
Declaration
Swift
case offline -
A cache IO error occurred.
Declaration
Swift
case cacheIoError -
Protected cache is corrupted. It can be a result of downloading the map in the background and the OS killing the application at that time. Use method
sdk.maploader.MapDownloader.get_initial_persistent_map_statusto get the status of the map and method repair_persistent_map in the MapDownloader to try to fix the cache if it is broken.Declaration
Swift
case protectedCacheCorrupted -
Operation on the protected cache cannot be done due to required migration. Call
sdk.maploader.MapDownloader.repair_persistent_mapto perform migration.Declaration
Swift
case migrationRequired -
Method is invoked on object connected to the disposed SDKNativeEngine.
Declaration
Swift
case operationAfterDispose -
Misconfiguration of catalogs. This error may occur when
sdk.core.engine.CatalogConfigurationis misconfigured and cannot be used for any operation withMapDownloaderorMapUpdater. VerifySDKOptions.catalogConfigurations.Declaration
Swift
case catalogConfigurationError -
Map regions update was interrupted. Indicates that the cache state is wrong after an update that was finished not in correct way (e.g sudden app shutdown). Prefetching or removing of map regions are blocked until the update has been completed successfully.
Declaration
Swift
case pendingUpdate -
Catalog update cannot proceed as another catalog update is in PENDING_UPDATE state. Update the catalog in PENDING_UPDATE state first, before trying to update another catalog.
Declaration
Swift
case updateBlockedAsAnotherPending -
Unrecoverable error during construction of pending update parameters. Operations such as catalog updates or region downloads will fail. The healing procedure is to clean persistent map with
sdk.maploader.MapDownloader.clear_persistent_map_storage.Declaration
Swift
case brokenUpdate -
Parallel request is already running and conflicting with the current one (e.g updating map and deleting map regions)
Declaration
Swift
case parallelRequest -
Proxy is not authenticated. Check your proxy credentials.
Declaration
Swift
case proxyAuthenticationFailed -
Proxy server unreachable.
Declaration
Swift
case proxyServerUnreachable -
There’s no sufficient space on the disk to finish operation. For offline maps operation (download or update), it means that there’s not enough space on the device. For prefetch operations, it means that there’s not enough space in the mutable cache to store the prefetched data.
Declaration
Swift
case notEnoughSpace -
This version of HERE SDK does not support the ability to download maps. Contact the sales team to get access to the full version.
Declaration
Swift
case onlineNavigateOnly