Enum Class OfflineSearchIndex.Error

java.lang.Object
java.lang.Enum<OfflineSearchIndex.Error>
com.here.sdk.search.OfflineSearchIndex.Error
All Implemented Interfaces:
Serializable, Comparable<OfflineSearchIndex.Error>, Constable
Enclosing class:
OfflineSearchIndex

public static enum OfflineSearchIndex.Error extends Enum<OfflineSearchIndex.Error>

Error corresponding to the offline search operation.

  • Enum Constant Details

    • INVALID_PERSISTENT_PATH

      public static final OfflineSearchIndex.Error INVALID_PERSISTENT_PATH

      Unreachable SDKOptions.persistentMapStoragePath or lacking required permission to generate index inside.

    • MAP_ERROR

      public static final OfflineSearchIndex.Error MAP_ERROR

      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.

    • DATABASE_ERROR

      public static final OfflineSearchIndex.Error DATABASE_ERROR

      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.

    • OPERATION_CANCELLED

      public static final OfflineSearchIndex.Error OPERATION_CANCELLED

      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.

    • INTERNAL_ERROR

      public static final OfflineSearchIndex.Error INTERNAL_ERROR

      Internal error occurred.

  • Method Details

    • values

      public static OfflineSearchIndex.Error[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OfflineSearchIndex.Error valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null