HERE Android SDK Developer's Guide

ErrorCode

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

Enumeration Summary

public final enumeration ErrorCode

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

This enum represents Urban Mobility 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.

public static final ErrorCode VIOLATES_OPTIONS

A route was found but is invalid because it makes use of roads that were disabled by RouteOptions.

public static final ErrorCode INVALID_OPERATION

The operation is not allowed at this time because another request is in progress.

public static final ErrorCode INVALID_CREDENTIALS

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

public static final ErrorCode INVALID_PARAMETERS

Invalid request parameters were provided.

public static final ErrorCode INVALID_PERIOD

Given time period is invalid.

public static final ErrorCode START_DESTINATION_TOO_CLOSE

The start and destination locations are too close to each other.

public static final ErrorCode CANCELLED

The request was cancelled.

public static final ErrorCode OPERATION_NOT_ALLOWED

Access to this operation is denied.

public static final ErrorCode NETWORK_COMMUNICATION

There was a network communications error.

public static final ErrorCode NOT_FOUND

No search matches were found.

public static final ErrorCode ROUTING_NOT_POSSIBLE

Routing was not possible.

public static final ErrorCode NO_COVERAGE

No coverage in this region/area.

public static final ErrorCode NO_STATION_NEARBY

No stations were found near the given address.

public static final ErrorCode UNAVAILABLE_API

API is not available in this region or area.

public static final ErrorCode INVALID_RESPONSE

Backend service returned invalid response.

public static final ErrorCode SERVICE_UNAVAILABLE

The backend service was unavailable.

public static final ErrorCode INSUFFICIENT_MAP_DATA

The route cannot be calculated because there is not enough local map data to perform route calculation.

public static final ErrorCode OUT_OF_MEMORY

There was insufficient memory to complete the request.

public static final ErrorCode UNKNOWN

There was an unknown 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

This enum represents Urban Mobility request errors.

IMPORTANT: Urban Mobility is a Beta feature. The related classes are subject to change without notice.

Enum Constant Details

public static final ErrorCode NONE

No error.

public static final ErrorCode VIOLATES_OPTIONS

A route was found but is invalid because it makes use of roads that were disabled by RouteOptions.

public static final ErrorCode INVALID_OPERATION

The operation is not allowed at this time because another request is in progress.

public static final ErrorCode INVALID_CREDENTIALS

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

public static final ErrorCode INVALID_PARAMETERS

Invalid request parameters were provided.

public static final ErrorCode INVALID_PERIOD

Given time period is invalid.

public static final ErrorCode START_DESTINATION_TOO_CLOSE

The start and destination locations are too close to each other.

public static final ErrorCode CANCELLED

The request was cancelled.

public static final ErrorCode OPERATION_NOT_ALLOWED

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

public static final ErrorCode NETWORK_COMMUNICATION

There was a network communications error.

public static final ErrorCode NOT_FOUND

No search matches were found.

public static final ErrorCode ROUTING_NOT_POSSIBLE

Routing was not possible.

public static final ErrorCode NO_COVERAGE

No coverage in this region/area.

public static final ErrorCode NO_STATION_NEARBY

No stations were found near the given address.

public static final ErrorCode UNAVAILABLE_API

API is not available in this region or area.

public static final ErrorCode INVALID_RESPONSE

Backend service returned invalid response.

public static final ErrorCode SERVICE_UNAVAILABLE

The backend service was unavailable. Try again later.

public static final ErrorCode INSUFFICIENT_MAP_DATA

The route cannot be calculated because there is not enough local map data to perform route calculation. Client can re-download map data and calculate route again.

public static final ErrorCode OUT_OF_MEMORY

There was insufficient memory to complete the request.

public static final ErrorCode UNKNOWN

There was an unknown 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.