RoutingFailure

open class RoutingFailure(val message: String) : RuntimeException

Represents an failure raised when something went wrong in routing.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

message

Optional failure message.

Constructors

Link copied to clipboard
fun RoutingFailure(message: String)

Types

Link copied to clipboard
class ApiKeyFailure(val message: String = API_KEY_FAILURE_MESSAGE) : RoutingFailure

Routing call did not finish due to a problem with the API key.

Link copied to clipboard
class BadInputFailure(val message: String) : RoutingFailure

Some input parameter combination was not valid.

Link copied to clipboard

Indicates that the request reached an internal computation time threshold and timed out.

Link copied to clipboard

Deserialization failed. Examples that could trigger this error are:

Link copied to clipboard
class HttpFailure(val httpErrorCode: Int, val message: String) : RoutingFailure

Routing call ended with unexpected HTTP code.

Link copied to clipboard

Instruction generation failed.

Link copied to clipboard
class InternalFailure(val message: String) : RoutingFailure

The internal routing failure.

Link copied to clipboard

One of the input points (Origin, Destination, Waypoints) could not be matched to the map because there is no known drivable section near this point.

Link copied to clipboard
class NetworkFailure(val message: String) : RoutingFailure

Routing network call failed with IOException.

Link copied to clipboard

No valid route could be found.

Link copied to clipboard

The route reconstruction using supportingPoints failed.

Link copied to clipboard

The calculation was cancelled.

Link copied to clipboard
class UnknownFailure(val message: String? = null) : RoutingFailure

Routing call ended with unknown error.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open override val message: String

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard