RouteDataFailure

abstract class RouteDataFailure : Throwable

Represents a failure when obtaining the requested data about a route.

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

Parameters

message

Failure message.

Inheritors

Types

Link copied to clipboard

The route contains invalid data.

Link copied to clipboard
class NoConsumption(message: String = "Route does not contain consumption data") : RouteDataFailure

The requested data is consumption-related, but the route was planned without evaluating consumption.

Link copied to clipboard
class NoRoutePoints(message: String = "Route does not contain any route points") : RouteDataFailure

The requested data is calculated using route points, but the route does not contain any.

Link copied to clipboard

The route does not contain the requested index, offset, or travel time.

Link copied to clipboard

A provided argument has an incompatible type for the requested calculation. This happens, e.g., when mixing consumption values of different engine types (fuel/electric).

Inherited properties

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

Inherited 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