MapUpdateError

public enum MapUpdateError : CustomStringConvertible, Error

TomTomMap update error

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Unexpected deployment error that will require the customer to analyze the error.

    Declaration

    Swift

    case unknown
  • Error while accessing a database.

    This can be caused by:

    • Corrupt database in the map.
    • Hardware problem when accessing a database in the map.
    • Wrong keystore/password to open an encrypted database in the map.
    • Permission problem to read/write a database in the map.
    • Corrupt catalog in the update storage.
    • Out of install space or inodes when updating a database in the map.

    Declaration

    Swift

    case databaseError
  • Error while accessing the file system.

    This can be caused by:

    • Permission problem when attempting to create/delete/copy/move a file or directory in the map or the update storage.
    • Filesystem problem failing to e.g. open a file or call fsync.
    • Hardware problem when accessing a file in the map or the update storage.
    • Out of install space or inodes when creating/copying a file or directory in the map.

    Declaration

    Swift

    case fileSystemError
  • Expected or required updates are missing.

    This error depends on the context but can, for instance, be caused by providing an invalid path.

    Declaration

    Swift

    case missingUpdates
  • Failure to get exclusive access.

    Indicates that the request for getting the exclusive map access, which is required to modify the map files, failed (e.g. timed out).

    Declaration

    Swift

    case exclusiveAccessNotAcquired
  • No map was found in the NDS Store path.

    Declaration

    Swift

    case noMapAvailable
  • A file or directory could not be read.

    This error can occur during a map replacement operation. Causes can be:

    • The file/directory path does not exist.
    • Insufficient permissions.
    • A hardware or filesystem problem.

    Declaration

    Swift

    case fileReadError
  • An invalid file was provided or there was a checksum failure.

    During a map replacement operation, all files of the new map need to be validated with a checksum. In addition to that, sanity checks may be performed. Both checks can result in this validation error.

    Declaration

    Swift

    case fileValidationError
  • An invalid hash function has been provided for the file validation.

    An invalid hash is either an unsupported algorithm or a malformed checksum.

    Declaration

    Swift

    case invalidHashFunction
  • Map updates are disabled in the component.

    Trying to update the map will result in this error if map updates are disabled in the component.

    Note: Never reported as an error for automatic updates.

    Declaration

    Swift

    case updatesDisabled
  • Failure to get shared access to the map.

    Indicates that the request for getting the shared access to the map failed.

    This error may be an indication that other components in the system have temporarily acquired exclusive access to the map.

    Declaration

    Swift

    case sharedMapAccessError
  • Not enough disk space to download or install a map update.

    This error is an indication of insufficient free disk space to download or install a map update.

    Declaration

    Swift

    case insufficientDiskSpace
  • The scheduled operation was canceled.

    Declaration

    Swift

    case canceled
  • Transient network error occurred.

    Can occur e.g. when there is no network connection.

    Declaration

    Swift

    case networkError

Public

  • Returns string representation of the error.

    Declaration

    Swift

    public var description: String { get }