Enum Class SearchError

java.lang.Object
java.lang.Enum<SearchError>
com.here.sdk.search.SearchError
All Implemented Interfaces:
Serializable, Comparable<SearchError>, Constable

public enum SearchError extends Enum<SearchError>

Specifies possible errors that may result from a search query.

  • Enum Constant Details

    • AUTHENTICATION_FAILED

      public static final SearchError AUTHENTICATION_FAILED

      Search operation is not authenticated. Check your credentials.

    • MAX_ITEMS_OUT_OF_RANGE

      public static final SearchError MAX_ITEMS_OUT_OF_RANGE

      Should be in the range [1, 100].

    • PARSING_ERROR

      public static final SearchError PARSING_ERROR

      Error while parsing response data.

    • NO_RESULTS_FOUND

      public static final SearchError NO_RESULTS_FOUND

      No results found.

    • HTTP_ERROR

      public static final SearchError HTTP_ERROR

      Network request error.

    • SERVER_UNREACHABLE

      public static final SearchError SERVER_UNREACHABLE

      Server unreachable.

    • FORBIDDEN

      public static final SearchError FORBIDDEN

      The credentials given do not provide access to the resource requested.

    • EXCEEDED_USAGE_LIMIT

      public static final SearchError EXCEEDED_USAGE_LIMIT

      Credentials exceeded the allowed requests limit.

    • OPERATION_FAILED

      public static final SearchError OPERATION_FAILED

      Operation failed due to an internal error.

    • OPERATION_CANCELLED

      public static final SearchError OPERATION_CANCELLED

      Operation cancelled.

    • TIMED_OUT

      public static final SearchError TIMED_OUT

      The request timed out.

    • OFFLINE

      public static final SearchError OFFLINE

      The device does not have an internet connection.

    • QUERY_TOO_LONG

      public static final SearchError QUERY_TOO_LONG

      Query is too long, max. size is 300 characters.

    • FILTER_TOO_LONG

      public static final SearchError FILTER_TOO_LONG

      Filter is too long, max. size is 300 characters.

    • PROXY_AUTHENTICATION_FAILED

      public static final SearchError PROXY_AUTHENTICATION_FAILED

      Proxy is not authenticated. Check your proxy credentials.

    • PROXY_SERVER_UNREACHABLE

      public static final SearchError PROXY_SERVER_UNREACHABLE

      Proxy server unreachable.

    • QUERY_EMPTY

      public static final SearchError QUERY_EMPTY

      Empty query

    • INVALID_AREA

      public static final SearchError INVALID_AREA

      Box or circle area of query is invalid

    • FILTER_EMPTY

      public static final SearchError FILTER_EMPTY

      Filter is empty

    • INVALID_CORRIDOR_POLYLINE

      public static final SearchError INVALID_CORRIDOR_POLYLINE

      Corridor area polyline size is less than 2 points

    • INVALID_URL

      public static final SearchError INVALID_URL

      Url is invalid

    • INVALID_CUSTOM_OPTION_FORMAT

      public static final SearchError INVALID_CUSTOM_OPTION_FORMAT

      Custom options are set in an invalid format in the query

    • INVALID_TRUCK_CLASS

      public static final SearchError INVALID_TRUCK_CLASS

      Light truck class is passed in the filter

    • BAD_REQUEST

      public static final SearchError BAD_REQUEST

      Bad network request

    • MAP_NOT_READY

      public static final SearchError MAP_NOT_READY

      Offline map data is incomplete for the requested operation. Regions are not downloaded or are in the Pending state.

      Note: This is an alpha release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

    • LAYERS_NOT_DOWNLOADED

      public static final SearchError LAYERS_NOT_DOWNLOADED

      Downloaded regions missing LayerConfiguration.Feature.OFFLINE_SEARCH_GLOBAL feature. Update or redownload regions with enabled feature.

      Note: This is an alpha release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • Method Details

    • values

      public static SearchError[] 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 SearchError 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