Exemplo n.º 1
0
 def __init__(self, message=""):
     """
     HttpNotFound constructor
     :param message: String, message of the exception. Ie, "Object not found"
     """
     NotFound.__init__(self, message)
     self.description = message
Exemplo n.º 2
0
 def __init__(self):
     NotFound.__init__(self, "Storage is empty")
Exemplo n.º 3
0
 def __init__(self, oid):
     NotFound.__init__(self, "Point {} not found".format(oid))
Exemplo n.º 4
0
 def __init__(self, oid):
     NotFound.__init__(self, "User {} not found".format(oid))
Exemplo n.º 5
0
 def __init__(self, repo, module, function):
     NotFound.__init__(
         self,
         "Function %(function)s not found in module %(repo)s/%(module)s" %
         locals())
Exemplo n.º 6
0
 def __init__(self, repo, module):
     NotFound.__init__(self,
                       "Module %(repo)s/%(module)s not found" % locals())