Enum RoutingError
Enum RoutingError
- java.lang.Object
-
- java.lang.Enum<RoutingError>
-
- com.here.sdk.routing.RoutingError
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RoutingError>
public enum RoutingError extends java.lang.Enum<RoutingError>
Specifies possible errors that may result from the calculation of a route.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE_MAP_UPDATERoute cannot be calculated due to active map update.AUTHENTICATION_FAILEDRouting operation is not authenticated.COULD_NOT_MATCH_DESTINATIONDestination waypoint could not be matched to a road network.COULD_NOT_MATCH_ORIGINOrigin waypoint could not be matched to a road network.EXCEEDED_USAGE_LIMITCredentials exceeded the allowed requests limit.FAILED_ROUTE_HANDLE_CREATIONNo RouteHandle was created.FORBIDDENThe provided credentials don't give access to the requested resource.HTTP_ERRORA general network request error.IMPORT_FAILEDNo route section was found for imported waypoints.INTERNAL_ERRORGeneric internal error.INVALID_PARAMETERAn invalid input parameter.NO_ISOLINE_FOUNDNo isoline can be calculated for the given input.NO_REACHABLE_CHARGING_STATION_FOUNDInitial charge is not enough to reach any known charging stations.NO_ROUTE_FOUNDNo route can be calculated for the given input.NO_ROUTE_HANDLEThe route has noRoute.getRouteHandle(), but it was used for a feature that requires one.OFFLINEThe device has no internet connection.OPERATION_CANCELLEDOperation cancelled.PARSING_ERRORError while parsing route data.PROXY_AUTHENTICATION_FAILEDProxy is not authenticated.PROXY_SERVER_UNREACHABLEProxy server unreachable.ROUTE_CALCULATION_FAILEDCalculation did not succeed.ROUTE_LENGTH_LIMIT_EXCEEDEDDistance between waypoints is too large for current options.SERVER_UNREACHABLERouting server is unreachable.TIMED_OUTThe request timed out.VIOLATED_TRANSPORT_MODE_IN_ROUTE_HANDLE_DECODINGRoute handle decoding failed due to forbidden segments for the specified transport mode.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RoutingErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RoutingError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTERNAL_ERROR
public static final RoutingError INTERNAL_ERROR
Generic internal error.
-
INVALID_PARAMETER
public static final RoutingError INVALID_PARAMETER
An invalid input parameter.
-
SERVER_UNREACHABLE
public static final RoutingError SERVER_UNREACHABLE
Routing server is unreachable.
-
HTTP_ERROR
public static final RoutingError HTTP_ERROR
A general network request error.
-
AUTHENTICATION_FAILED
public static final RoutingError AUTHENTICATION_FAILED
Routing operation is not authenticated. Check your credentials.
-
FORBIDDEN
public static final RoutingError FORBIDDEN
The provided credentials don't give access to the requested resource.
-
EXCEEDED_USAGE_LIMIT
public static final RoutingError EXCEEDED_USAGE_LIMIT
Credentials exceeded the allowed requests limit.
-
PARSING_ERROR
public static final RoutingError 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
public static final RoutingError NO_ROUTE_FOUND
No route can be calculated for the given input.
-
TIMED_OUT
public static final RoutingError TIMED_OUT
The request timed out.
-
OFFLINE
public static final RoutingError OFFLINE
The device has no internet connection.
-
NO_ISOLINE_FOUND
public static final RoutingError NO_ISOLINE_FOUND
No isoline can be calculated for the given input.
-
NO_ROUTE_HANDLE
public static final RoutingError 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
public static final RoutingError OPERATION_CANCELLED
Operation cancelled.
-
COULD_NOT_MATCH_DESTINATION
public static final RoutingError 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
public static final RoutingError 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
public static final RoutingError FAILED_ROUTE_HANDLE_CREATION
No RouteHandle was created.
-
IMPORT_FAILED
public static final RoutingError IMPORT_FAILED
No route section was found for imported waypoints.
-
NO_REACHABLE_CHARGING_STATION_FOUND
public static final RoutingError NO_REACHABLE_CHARGING_STATION_FOUND
Initial charge is not enough to reach any known charging stations.
-
ROUTE_CALCULATION_FAILED
public static final RoutingError ROUTE_CALCULATION_FAILED
Calculation did not succeed.
-
ROUTE_LENGTH_LIMIT_EXCEEDED
public static final RoutingError ROUTE_LENGTH_LIMIT_EXCEEDED
Distance between waypoints is too large for current options.
-
VIOLATED_TRANSPORT_MODE_IN_ROUTE_HANDLE_DECODING
public static final RoutingError VIOLATED_TRANSPORT_MODE_IN_ROUTE_HANDLE_DECODING
Route handle decoding failed due to forbidden segments for the specified transport mode.
-
PROXY_AUTHENTICATION_FAILED
public static final RoutingError PROXY_AUTHENTICATION_FAILED
Proxy is not authenticated. Check your proxy credentials.
-
PROXY_SERVER_UNREACHABLE
public static final RoutingError PROXY_SERVER_UNREACHABLE
Proxy server unreachable.
-
ACTIVE_MAP_UPDATE
public static final RoutingError ACTIVE_MAP_UPDATE
Route cannot be calculated due to active map update. Please, repeat the request after map update is finished successfully.
-
-
Method Detail
-
values
public static RoutingError[] 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 (RoutingError c : RoutingError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RoutingError 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 namejava.lang.NullPointerException- if the argument is null
-
-