Logo Search packages:      
Sourcecode: abakus version File versions  Download package

errors.py

__Optik_revision__="errors.py,v 1.5 2002/02/13 23:29:47 gward Exp"
00002 class OptikError (Exception):
    def __init__ (self, msg):
        self.msg=msg
    def __str__ (self):
        return self.msg
00007 class OptionError (OptikError):
    def __init__ (self, msg, option):
        self.msg=msg
        self.option_id=str(option)
    def __str__ (self):
        if self.option_id:
            return "option %s: %s" % (self.option_id, self.msg)
        else:
            return self.msg
00016 class OptionConflictError (OptionError):
      ""
00018 class OptionValueError (OptikError):
      ""
00020 class BadOptionError (OptikError):
      ""

Generated by  Doxygen 1.6.0   Back to index