7ee9e2a9f1
When multiple stations are found, the user is presented with buttons to chosse from. The arguments entered before will be preserved
21 lines
457 B
Python
21 lines
457 B
Python
class NoArgError(Exception):
|
|
pass
|
|
|
|
|
|
class StationNotFoundError(Exception):
|
|
pass
|
|
|
|
|
|
class ServerCommunicationError(Exception):
|
|
pass
|
|
|
|
|
|
class MultipleStationsFoundError(Exception):
|
|
message_text = ''
|
|
queried_station = ''
|
|
station_list = []
|
|
|
|
def __init__(self, message_text, queried_station, station_list):
|
|
self.message_text = message_text
|
|
self.queried_station = queried_station
|
|
self.station_list = station_list
|