"""Special use exceptions.""" class NewArtistError(Exception): """Exception used to handle request flow control.""" def __init__(self, message, result): # Call the base class constructor with the parameters it needs super(NewArtistError, self).__init__(message) self.result = result self.message = message class StopFileError(Exception): """Exception used to handle file flow control.""" def __init__(self, message): # Call the base class constructor with the parameters it needs super(StopFileError, self).__init__(message) self.message = message