exceptions module¶
Defines the hierarchy of exceptions raised and used by jinete’s module.
-
exception
jinete.exceptions.
JineteException
(message)[source]¶ Bases:
Exception
The base exception on jinete’s package.
-
__init__
(message)[source]¶ Construct a new instance.
- Parameters
message (
str
) – A brief description of the cause.
-
args
¶
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
jinete.exceptions.
NonFeasiblePlannedTripException
(planned_trip)[source]¶ Bases:
jinete.exceptions.JineteException
Represents an exception raised while providing a non feasible route.
-
__init__
(planned_trip)[source]¶ Construct a new instance.
- Parameters
planned_trip (PlannedTrip) – The non feasible planned trip.
-
args
¶
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
jinete.exceptions.
NonFeasibleRouteException
(route)[source]¶ Bases:
jinete.exceptions.JineteException
Represents an exception raised while providing a non feasible route.
-
__init__
(route)[source]¶ Construct a new instance.
- Parameters
route (Route) – The non feasible route.
-
args
¶
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
jinete.exceptions.
PreviousStopNotInRouteException
(route, stop)[source]¶ Bases:
jinete.exceptions.JineteException
Represents an exception raised while the previous stop is not present in the target route.
-
args
¶
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-