HERE Android SDK Developer's Guide

ErrorCode

The enumeration ErrorCode is a member of com.here.android.mpa.search .

Enumeration Summary

public final enumeration ErrorCode

extends java.lang.Enum, java.lang.Object

Represents values describing possible search request errors.

[For complete information, see the section Enumeration Details]

Enum Constant Summary

Table 1. Enum Constants in ErrorCode
Fields

public static final ErrorCode NONE

No error was encountered.

public static final ErrorCode GENERAL

There was a general error.

public static final ErrorCode NOT_FOUND

No appropriate response to the query request could be found.

public static final ErrorCode NOT_INITIALIZED

The search service was not properly initialized.

public static final ErrorCode INCOMPLETE

The results of the query request were incomplete.

public static final ErrorCode NETWORK_REQUIRED

The query request could not be completed while offline.

public static final ErrorCode OUT_OF_MEMORY

There was insufficient memory to complete the query request.

public static final ErrorCode UNKNOWN

There was an unknown error.

public static final ErrorCode INVALID_PARAMETERS

The request contains invalid parameters.

public static final ErrorCode CANCEL

The query request was cancelled.

public static final ErrorCode BUSY

The search service was busy with another request.

public static final ErrorCode INVALID_STATE

The search service was in an invalid state.

public static final ErrorCode SERVER_CONNECTION

There was a problem with the server connection.

public static final ErrorCode INVALID_OPERATION

The query request triggered an invalid operation.

public static final ErrorCode BAD_LOCATION

The query request contained bad location data.

public static final ErrorCode INDEX_FAILURE

There was an search service index failure.

public static final ErrorCode CANCELLED

The query request was cancelled.

public static final ErrorCode CREATED

The response to the query request was created.

public static final ErrorCode ACCEPTED

The query request was accepted, though not yet processed.

public static final ErrorCode NO_CONTENT

The response to the query request contained no content.

public static final ErrorCode SERVER_INTERNAL

There was an internal server error.

public static final ErrorCode SERVICE_UNAVAILABLE

The search service was unavailable.

public static final ErrorCode MOVED_PERMANENTLY

The requested resource has moved permanently.

public static final ErrorCode BAD_REQUEST

The query request was malformed and will not be processed.

public static final ErrorCode UNAUTHORIZED

The query request did not contain necessary authentication information.

public static final ErrorCode FORBIDDEN

Access to the requested resource was forbidden.

public static final ErrorCode OPERATION_NOT_ALLOWED

Access to this operation is denied.

public static final ErrorCode NOT_ACCEPTABLE

The response to the query request was not in a format that is acceptable to the client.

public static final ErrorCode RESOURCE_GONE

The resource no longer exists at the requested server location.

public static final ErrorCode QUERY_ADDRESS_MISSING

The query request was missing an address parameter.

public static final ErrorCode QUERY_LOCATION_CONTEXT_INVALID

The query location context was invalid.

public static final ErrorCode QUERY_LOCATION_CONTEXT_MISSING

The query request was missing a location context parameter.

public static final ErrorCode QUERY_NO_NEXT_PAGE

No further paginated results exist.

public static final ErrorCode QUERY_TEXT_MISSING

The query request was missing a search text parameter.

public static final ErrorCode QUERY_URI_MISSING

The query request was missing a link URI.

public static final ErrorCode SEARCH_RESULT_ITEM_MISSING

The place details query was missing a search result item parameter.

public static final ErrorCode INVALID_PARAMETER

A query request parameter was invalid.

public static final ErrorCode NETWORK_COMMUNICATION

There was a network communications error.

public static final ErrorCode NETWORK_BAD_URI

The HTTP request URI was invalid or malformed.

public static final ErrorCode NETWORK_SERVER

The backend server was unreachable.

public static final ErrorCode NETWORK_REQUEST_CONTENT

The query request content was invalid.

public static final ErrorCode NETWORK_EMPTY_INPUT

The query request input was missing.

public static final ErrorCode INVALID_CREDENTIALS

The HERE application ID and application code were missing or invalid.

public static final ErrorCode HTTP

The query request failed due to an HTTP error.

public static final ErrorCode NETWORK_UNKNOWN

There was an unknown network error.

Method Summary

Table 2. Methods in ErrorCode
Methods

public static ErrorCode valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

public static ErrorCode[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.

Enumeration Details

Represents values describing possible search request errors.

Enum Constant Details

public static final ErrorCode NONE

No error was encountered.

public static final ErrorCode GENERAL

There was a general error.

public static final ErrorCode NOT_FOUND

No appropriate response to the query request could be found.

public static final ErrorCode NOT_INITIALIZED

The search service was not properly initialized.

public static final ErrorCode INCOMPLETE

The results of the query request were incomplete.

public static final ErrorCode NETWORK_REQUIRED

The query request could not be completed while offline.

public static final ErrorCode OUT_OF_MEMORY

There was insufficient memory to complete the query request.

public static final ErrorCode UNKNOWN

There was an unknown error.

public static final ErrorCode INVALID_PARAMETERS

The request contains invalid parameters.

public static final ErrorCode CANCEL

The query request was cancelled.

public static final ErrorCode BUSY

The search service was busy with another request.

public static final ErrorCode INVALID_STATE

The search service was in an invalid state.

public static final ErrorCode SERVER_CONNECTION

There was a problem with the server connection.

public static final ErrorCode INVALID_OPERATION

The query request triggered an invalid operation.

public static final ErrorCode BAD_LOCATION

The query request contained bad location data.

public static final ErrorCode INDEX_FAILURE

There was an search service index failure.

public static final ErrorCode CANCELLED

The query request was cancelled.

public static final ErrorCode CREATED

The response to the query request was created.

public static final ErrorCode ACCEPTED

The query request was accepted, though not yet processed.

public static final ErrorCode NO_CONTENT

The response to the query request contained no content.

public static final ErrorCode SERVER_INTERNAL

There was an internal server error.

public static final ErrorCode SERVICE_UNAVAILABLE

The search service was unavailable.

public static final ErrorCode MOVED_PERMANENTLY

The requested resource has moved permanently.

public static final ErrorCode BAD_REQUEST

The query request was malformed and will not be processed.

public static final ErrorCode UNAUTHORIZED

The query request did not contain necessary authentication information.

public static final ErrorCode FORBIDDEN

Access to the requested resource was forbidden.

public static final ErrorCode OPERATION_NOT_ALLOWED

Access to this operation is denied. Contact your HERE representative for more information.

public static final ErrorCode NOT_ACCEPTABLE

The response to the query request was not in a format that is acceptable to the client.

public static final ErrorCode RESOURCE_GONE

The resource no longer exists at the requested server location.

public static final ErrorCode QUERY_ADDRESS_MISSING

The query request was missing an address parameter.

public static final ErrorCode QUERY_LOCATION_CONTEXT_INVALID

The query location context was invalid.

public static final ErrorCode QUERY_LOCATION_CONTEXT_MISSING

The query request was missing a location context parameter.

public static final ErrorCode QUERY_NO_NEXT_PAGE

No further paginated results exist.

public static final ErrorCode QUERY_TEXT_MISSING

The query request was missing a search text parameter.

public static final ErrorCode QUERY_URI_MISSING

The query request was missing a link URI.

public static final ErrorCode SEARCH_RESULT_ITEM_MISSING

The place details query was missing a search result item parameter.

public static final ErrorCode INVALID_PARAMETER

A query request parameter was invalid.

public static final ErrorCode NETWORK_COMMUNICATION

There was a network communications error.

public static final ErrorCode NETWORK_BAD_URI

The HTTP request URI was invalid or malformed.

public static final ErrorCode NETWORK_SERVER

The backend server was unreachable.

public static final ErrorCode NETWORK_REQUEST_CONTENT

The query request content was invalid.

public static final ErrorCode NETWORK_EMPTY_INPUT

The query request input was missing.

public static final ErrorCode INVALID_CREDENTIALS

The HERE application ID and application code were missing or invalid.

public static final ErrorCode HTTP

The query request failed due to an HTTP error.

public static final ErrorCode NETWORK_UNKNOWN

There was an unknown network error.

Method Details

public static ErrorCode valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

Parameters:

  • name

    A string containing the name of the enumeration member whose value is to be retrieved.

public static ErrorCode[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.