exceptions Module¶
- exception transperth.exceptions.BadStationError[source]¶
Bases: transperth.exceptions.TransperthException
Thrown when the library encounters a bad station name
- exception transperth.exceptions.IncompleteTrip[source]¶
Bases: transperth.exceptions.TransperthException
Thrown when a trip is missing its conclusion
- exception transperth.exceptions.InvalidDirection[source]¶
Bases: transperth.exceptions.TransperthException
Thrown when the provided direction is neither to nor from
- exception transperth.exceptions.InvalidStep[source]¶
Bases: transperth.exceptions.TransperthException
Thrown when a step is not one of ‘bus’, ‘walk’, or ‘train’
- exception transperth.exceptions.InvalidStopNumber[source]¶
Bases: transperth.exceptions.TransperthException
Thrown when the provided stop number is not a five digit number
- exception transperth.exceptions.LoginFailed[source]¶
Bases: transperth.exceptions.NotLoggedIn
Thrown when a login attempt fails
- exception transperth.exceptions.NoFareData[source]¶
Bases: transperth.exceptions.TransperthException
Thrown when transperth does not provide data from which we can assertain the fare for a route
- exception transperth.exceptions.NotLoggedIn[source]¶
Bases: transperth.exceptions.TransperthException
Raised when the library detects that the session has expired