Enum TrafficQueryError

  • java.lang.Object
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TrafficQueryError>

    public enum TrafficQueryError
    extends java.lang.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 Detail

      • 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.

      • 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 Detail

      • values

        public static TrafficQueryError[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TrafficQueryError c : TrafficQueryError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TrafficQueryError valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null