HERE Android SDK Developer's Guide

Error

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

Enumeration Summary

public final enumeration Error

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

Represents the status of a NLP operation.

[For complete information, see the section Enumeration Details]

Enum Constant Summary

Table 1. Enum Constants in Error
Fields

public static final Error NONE

Operation is successfully performed

public static final Error FAILED

Operation failed

Method Summary

Table 2. Methods in Error
Methods

public static Error create (Error error, String message)

Constructs an error with the specified error code and message

public String getMessage ()

Retrieve the message

public static Error valueOf (String name)

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

public static Error[] values ()

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

Enumeration Details

Represents the status of a NLP operation.

IMPORTANT: Natural language processor is a Beta feature. The related classes are subject to change without notice.

Enum Constant Details

public static final Error NONE

Operation is successfully performed

public static final Error FAILED

Operation failed

Method Details

public static Error create (Error error, String message)

Constructs an error with the specified error code and message

Parameters:

  • error

    NONE or FAILED

  • message

    The detailed message about the operation performed

public String getMessage ()

Retrieve the message

Returns:

The detailed message about the operation performed

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 Error[] values ()

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