Enum Class TrafficQueryError

java.lang.Object
java.lang.Enum<TrafficQueryError>
com.here.sdk.traffic.TrafficQueryError
All Implemented Interfaces:
Serializable, Comparable<TrafficQueryError>, Constable

public enum TrafficQueryError extends Enum<TrafficQueryError>

Represents various errors that could occur from a traffic queries.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • Enum Constant Details

    • FAILED_TO_RETRIEVE_RESULT

      public static final TrafficQueryError FAILED_TO_RETRIEVE_RESULT

      Failed to retrieve result since the server has returned an error or invalid result that couldn't be processed correctly.

    • AUTHENTICATION_FAILED

      public static final TrafficQueryError AUTHENTICATION_FAILED

      Incident query/flow operation is not authenticated. Check your credentials.

    • FORBIDDEN

      public static final TrafficQueryError FORBIDDEN

      The provided credentials don't give access to the requested resource.

    • SERVER_UNREACHABLE

      public static final TrafficQueryError SERVER_UNREACHABLE

      Server unreachable.

    • TIMED_OUT

      public static final TrafficQueryError TIMED_OUT

      The request timed out.

    • OFFLINE

      public static final TrafficQueryError OFFLINE

      The device has no internet connection.

    • HTTP_ERROR

      public static final TrafficQueryError HTTP_ERROR

      Network request error.

    • INVALID_IN

      public static final TrafficQueryError INVALID_IN

      Invalid "in" parameter: wrong type, missing or invalid "in".

    • INVALID_GEOMETRY

      public static final TrafficQueryError INVALID_GEOMETRY

      Invalid geometry: bounding box, circle, or corridor.

    • INVALID_INCIDENT

      public static final TrafficQueryError INVALID_INCIDENT

      Invalid incident ID, type, earliestStartTime or latestEndTime.

    • INCIDENT_ID_NOT_FOUND

      public static final TrafficQueryError INCIDENT_ID_NOT_FOUND

      Incident ID is not found in the system.

    • INVALID_FILTER_OPTIONS

      public static final TrafficQueryError INVALID_FILTER_OPTIONS

      One or several filter options are invalid.

    • INVALID_PARAMETER

      public static final TrafficQueryError INVALID_PARAMETER

      One or more input parameters in the query is not valid.

    • INTERNAL_ERROR

      public static final TrafficQueryError INTERNAL_ERROR

      Internal error.

    • OPERATION_CANCELLED

      public static final TrafficQueryError OPERATION_CANCELLED

      Operation cancelled.

    • PROXY_AUTHENTICATION_FAILED

      public static final TrafficQueryError PROXY_AUTHENTICATION_FAILED

      Proxy is not authenticated. Check your proxy credentials.

    • PROXY_SERVER_UNREACHABLE

      public static final TrafficQueryError PROXY_SERVER_UNREACHABLE

      Proxy server unreachable. Error indicates a problem with a proxy server's accessibility or connectivity.

    • BAD_REQUEST

      public static final TrafficQueryError BAD_REQUEST

      Bad request. Error indicates server could not understand or process the request made by the client because the request itself was malformed or incorrect.

    • TOO_MANY_REQUESTS

      public static final TrafficQueryError TOO_MANY_REQUESTS

      Server has received an excessive number of requests from client within a specific timeframe and client should slow down or wait before sending more requests.

  • Method Details

    • values

      public static TrafficQueryError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TrafficQueryError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null