GuidedPathRoutingException

Thrown when a route cannot be produced between two points of a guided path network.

Two situations raise it. The first is that no path exists: the destination is simply not reachable from the origin, which a partially specified or deliberately disconnected network permits. A network with unreachable pairs is legal at construction, because incremental model building passes through such states; the error surfaces only when a route between the unreachable pair is actually requested.

The second is that a user-supplied route selection rule returned a sequence that is not a route: consecutive zones that are not adjacent, a sequence that does not start where the vehicle is, or one that does not end at the destination. Reporting the rule's class name matters here, because the defect is in the extension rather than in the subsystem, and without the name a modeler has no way to tell which of several rules misbehaved.

A request naming a location that belongs to a different network, or a destination that is not an intersection at all, is a programmer error rather than a routing failure and raises IllegalArgumentException instead.

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)

Types

Link copied to clipboard
object Companion