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

      • 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 name
        java.lang.NullPointerException - if the argument is null