RoutingError (API Reference)
Enum Class RoutingError
- All Implemented Interfaces:
Serializable,Comparable<RoutingError>,Constable
Specifies possible errors that may result from the calculation of a route.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRoute cannot be calculated due to active map update.Routing operation is not authenticated.Destination waypoint could not be matched to a road network.Origin waypoint could not be matched to a road network.Credentials exceeded the allowed requests limit.No RouteHandle was created.The provided credentials don't give access to the requested resource.A general network request error.No route section was found for imported waypoints.Generic internal error.An invalid input parameter.No isoline can be calculated for the given input.Initial charge is not enough to reach any known charging stations.No route can be calculated for the given input.The route has noRoute.getRouteHandle(), but it was used for a feature that requires one.The device has no internet connection.Operation cancelled.Error while parsing route data.Proxy is not authenticated.Proxy server unreachable.Calculation did not succeed.Distance between waypoints is too large for current options.Routing server is unreachable.The request timed out.Route handle decoding failed due to forbidden segments for the specified transport mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic RoutingErrorReturns the enum constant of this class with the specified name.static RoutingError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTERNAL_ERROR
Generic internal error.
-
INVALID_PARAMETER
An invalid input parameter.
-
SERVER_UNREACHABLE
Routing server is unreachable.
-
HTTP_ERROR
A general network request error.
-
AUTHENTICATION_FAILED
Routing operation is not authenticated. Check your credentials.
-
FORBIDDEN
The provided credentials don't give access to the requested resource.
-
EXCEEDED_USAGE_LIMIT
Credentials exceeded the allowed requests limit.
-
PARSING_ERROR
Error while parsing route data. This is not expected to happen. Try updating to the newest version of the SDK. If the problem persists, please report a bug in the SDK.
-
NO_ROUTE_FOUND
No route can be calculated for the given input.
-
TIMED_OUT
The request timed out.
-
OFFLINE
The device has no internet connection.
-
NO_ISOLINE_FOUND
No isoline can be calculated for the given input.
-
NO_ROUTE_HANDLE
The route has no
Route.getRouteHandle(), but it was used for a feature that requires one. Consider to recalculate the route with a route handle. SeeRouteOptions.enableRouteHandle. -
OPERATION_CANCELLED
Operation cancelled.
-
COULD_NOT_MATCH_DESTINATION
Destination waypoint could not be matched to a road network. Either this waypoint is far from road network or not enough data has been downloaded. When both, origin and destination, cannot be matched, then the origin waypoint error will take precedence.
-
COULD_NOT_MATCH_ORIGIN
Origin waypoint could not be matched to a road network. Either this waypoint is far from road network or not enough data has been downloaded. When both, origin and destination, cannot be matched, then the origin waypoint error will take precedence.
-
FAILED_ROUTE_HANDLE_CREATION
No RouteHandle was created.
-
IMPORT_FAILED
No route section was found for imported waypoints.
-
NO_REACHABLE_CHARGING_STATION_FOUND
Initial charge is not enough to reach any known charging stations.
-
ROUTE_CALCULATION_FAILED
Calculation did not succeed.
-
ROUTE_LENGTH_LIMIT_EXCEEDED
Distance between waypoints is too large for current options.
-
VIOLATED_TRANSPORT_MODE_IN_ROUTE_HANDLE_DECODING
Route handle decoding failed due to forbidden segments for the specified transport mode.
-
PROXY_AUTHENTICATION_FAILED
Proxy is not authenticated. Check your proxy credentials.
-
PROXY_SERVER_UNREACHABLE
Proxy server unreachable.
-
ACTIVE_MAP_UPDATE
Route cannot be calculated due to active map update. Please, repeat the request after map update is finished successfully.
-
-
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
-