Source code for routingtools.exceptions

# -*- coding: utf-8 -*-
"""Custom error classes.

This module contains several error classes that are customized for the routing package.

"""

[docs]class CostConstraintTooLowError(Exception): """Not all stops could be served within the maximum route duration.""" pass
[docs]class NoSolutionFoundError(Exception): """Route optimizer could not find a solution.""" pass
[docs]class OSRMError(Exception): """OSRM request failed.""" pass