iro/error.py
branchdevel
changeset 213 3620bacf1152
parent 189 ae2767918faa
child 225 70dafbaf21af
equal deleted inserted replaced
212:39e4c09e1b60 213:3620bacf1152
    67 class NoTyp(OfferException):
    67 class NoTyp(OfferException):
    68     def __str__(self):
    68     def __str__(self):
    69         return "Not a valid Typ: %s"%self.name
    69         return "Not a valid Typ: %s"%self.name
    70 
    70 
    71 class RejectRecipient(Exception):
    71 class RejectRecipient(Exception):
    72     pass
    72     def __init__(self,recipient, status=None):
       
    73         self.recipient = recipient
       
    74         self.status = status
       
    75 
       
    76     def __str__(self):
       
    77         return "Reject recipient(%s): %s"%(str(self.recipient),str(self.status))
    73 
    78 
    74 class ConfigException(Exception):
    79 class ConfigException(Exception):
    75     def __init__(self,section, name):
    80     def __init__(self,section, name):
    76         self.section = section
    81         self.section = section
    77         self.name = name
    82         self.name = name