Skip to content

exceptions

This module contains the custom exceptions for the polar_route package.

InaccessibleWaypointError(waypoint, message='Waypoint is inaccessible')

Bases: Exception

Raised when a waypoint is inaccessible

InvalidMeshError(message='Invalid mesh')

Bases: Exception

Raised when the mesh is invalid

NoRouteFoundError(message='No route found')

Bases: Exception

Raised when a route cannot be found between two waypoints

RouteSmoothingError(message='Route could not be smoothed')

Bases: Exception

Raised when a route cannot be smoothed

WaypointOutOfBoundsError(waypoint, message='Waypoint is out of bounds of the mesh')

Bases: Exception

Raised when the waypoint is out of bounds of the mesh