HERE Android SDK Developer's Guide

ErrorCode

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

Enumeration Summary

public static final enumeration TollCostError.ErrorCode

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

Different Error codes reported by TollCostRequest.

[For complete information, see the section Enumeration Details]

Enum Constant Summary

Table 1. Enum Constants in ErrorCode
Fields

public static final ErrorCode SUCCESS

Operation successful.

public static final ErrorCode NO_PERMISSION

No permission to use Toll cost feature.

public static final ErrorCode ALREADY_RUNNING

Request is already in progress.

public static final ErrorCode CANCELLED

Operation cancelled.

public static final ErrorCode INVALID_PARAMETER

Invalid parameters.

public static final ErrorCode NO_CONNECTION

No network connection.

public static final ErrorCode SERVER_ERROR

Server error.

public static final ErrorCode UNKNOWN

Unknown.

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 TollCostError.ErrorCode[] values ()

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

Enumeration Details

Different Error codes reported by TollCostRequest.

Enum Constant Details

public static final ErrorCode SUCCESS

Operation successful.

public static final ErrorCode NO_PERMISSION

No permission to use Toll cost feature.

public static final ErrorCode ALREADY_RUNNING

Request is already in progress.

public static final ErrorCode CANCELLED

Operation cancelled.

public static final ErrorCode INVALID_PARAMETER

Invalid parameters.

public static final ErrorCode NO_CONNECTION

No network connection.

public static final ErrorCode SERVER_ERROR

Server error.

public static final ErrorCode UNKNOWN

Unknown.

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 TollCostError.ErrorCode[] values ()

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