iro/error.py
branchdevel
changeset 125 19b3f383c9ce
parent 116 48c70425bf6c
child 126 1ac2439a68b5
equal deleted inserted replaced
124:6efcdf7e2d62 125:19b3f383c9ce
    12         return "%i:%s"%(self.code,self.msg)
    12         return "%i:%s"%(self.code,self.msg)
    13 
    13 
    14 class UserNotFound(InterfaceException):
    14 class UserNotFound(InterfaceException):
    15     def __init__(self):
    15     def __init__(self):
    16         InterfaceException.__init__(self, 901, u"Der API-Key ist ungültig.")
    16         InterfaceException.__init__(self, 901, u"Der API-Key ist ungültig.")
       
    17 
       
    18 class JobNotFound(InterfaceException):
       
    19     def __init__(self):
       
    20         InterfaceException.__init__(self, 902, u"Die Jobid ist ungültig.")
    17 
    21 
    18 class ExternalException(InterfaceException):
    22 class ExternalException(InterfaceException):
    19     def __init__(self):
    23     def __init__(self):
    20         InterfaceException.__init__(self, 950, "Fehler in externer API.")
    24         InterfaceException.__init__(self, 950, "Fehler in externer API.")
    21 
    25