MonitorControlError

exception MonitorControl.MonitorControlError(args, message)

Error handler for this module

It was designed for a simple report where ‘args’ might be a variable value and ‘message’ some text about what is wrong with it, like: >>> raise MonitorControlError(self.name,” is not a valid name.”)

There are more sophisticated possibilities, like: In [1]: from MonitorControl import MonitorControlError In [2]: words = (‘Class:’, ‘method: ‘) In [3]: raise MonitorControlError(words,”%s = %s is not possible” % (1,2)) ————————————————————————— … MonitorControlError: ‘Class:method: 1 = 2 is not possible’