TrafficQueryError (API Reference)
Enum Class TrafficQueryError
- All Implemented Interfaces:
Serializable,Comparable<TrafficQueryError>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIncident query/flow operation is not authenticated.Bad request.Failed to retrieve result since the server has returned an error or invalid result that couldn't be processed correctly.The provided credentials don't give access to the requested resource.Network request error.Incident ID is not found in the system.Internal error.One or several filter options are invalid.Invalid geometry: bounding box, circle, or corridor.Invalid "in" parameter: wrong type, missing or invalid "in".Invalid incident ID, type, earliestStartTime or latestEndTime.One or more input parameters in the query is not valid.The device has no internet connection.Operation cancelled.Proxy is not authenticated.Proxy server unreachable.Server unreachable.The request timed out.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 Summary
Modifier and TypeMethodDescriptionstatic TrafficQueryErrorReturns the enum constant of this class with the specified name.static TrafficQueryError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
Incident query/flow operation is not authenticated. Check your credentials.
-
FORBIDDEN
The provided credentials don't give access to the requested resource.
-
SERVER_UNREACHABLE
Server unreachable.
-
TIMED_OUT
The request timed out.
-
OFFLINE
The device has no internet connection.
-
HTTP_ERROR
Network request error.
-
INVALID_IN
Invalid "in" parameter: wrong type, missing or invalid "in".
-
INVALID_GEOMETRY
Invalid geometry: bounding box, circle, or corridor.
-
INVALID_INCIDENT
Invalid incident ID, type, earliestStartTime or latestEndTime.
-
INCIDENT_ID_NOT_FOUND
Incident ID is not found in the system.
-
INVALID_FILTER_OPTIONS
One or several filter options are invalid.
-
INVALID_PARAMETER
One or more input parameters in the query is not valid.
-
INTERNAL_ERROR
Internal error.
-
OPERATION_CANCELLED
Operation cancelled.
-
PROXY_AUTHENTICATION_FAILED
Proxy is not authenticated. Check your proxy credentials.
-
PROXY_SERVER_UNREACHABLE
Proxy server unreachable. Error indicates a problem with a proxy server's accessibility or connectivity.
-
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
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
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
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 nameNullPointerException- if the argument is null
-