Exceptions¶
pyHaFAS can raise multiple exceptions. In the message of the exception you can always find the complete text error message HaFAS returned.
-
exception
pyhafas.types.exceptions.JourneysArrivalDepartureTooNearError[source]¶ Journeys search: arrival and departure date are too near
-
exception
pyhafas.types.exceptions.JourneysTooManyTrainsError[source]¶ Journeys search: Too many trains, connection is not complete
-
exception
pyhafas.types.exceptions.NoDepartureArrivalDataError[source]¶ No departure/arrival data available