HERE Android SDK Developer's Guide

Error

The enumeration Error is a member of com.here.android.mpa.guidance.TrafficUpdater.

Enumeration Summary

public static final enumeration TrafficUpdater.Error

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

Traffic status errors

[For complete information, see the section Enumeration Details]

Enum Constant Summary

Table 1. Enum Constants in Error
Fields

public static final Error NONE

No error.

public static final Error INVALID_PARAMETERS

Invalid parameters

public static final Error OUT_OF_MEMORY

Out of memory

public static final Error INVALID_OPERATION

Operation not allowed at the time of the call because another request is already in progress

public static final Error REQUEST_FAILED

Operation failed.Usually happens when traffic request is initiated when map is moving,panning or when network connection is not available

public static final Error INVALID_CREDENTIALS

HERE Developer credentials are invalid or were not provided

public static final Error UNKNOWN

Generic error

public static final Error UNSUPPORTED_ROUTE_MODE

The route mode is not supported by TrafficUpdater

public static final Error OPERATION_NOT_ALLOWED

Access to this operation is denied.

Method Summary

Table 2. Methods in Error
Methods

public int value ()

public static Error valueOf (String name)

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

public static TrafficUpdater.Error[] values ()

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

Enumeration Details

Traffic status errors

Enum Constant Details

public static final Error NONE

No error.

public static final Error INVALID_PARAMETERS

Invalid parameters

public static final Error OUT_OF_MEMORY

Out of memory

public static final Error INVALID_OPERATION

Operation not allowed at the time of the call because another request is already in progress

public static final Error REQUEST_FAILED

Operation failed.Usually happens when traffic request is initiated when map is moving,panning or when network connection is not available

public static final Error INVALID_CREDENTIALS

HERE Developer credentials are invalid or were not provided

public static final Error UNKNOWN

Generic error

public static final Error UNSUPPORTED_ROUTE_MODE

The route mode is not supported by TrafficUpdater

public static final Error OPERATION_NOT_ALLOWED

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

Method Details

public int value ()

public static Error 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 TrafficUpdater.Error[] values ()

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