示例#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
示例#2
0
 def __init__(self):
     NotFound.__init__(self, "Storage is empty")
示例#3
0
 def __init__(self, oid):
     NotFound.__init__(self, "Point {} not found".format(oid))
示例#4
0
 def __init__(self, oid):
     NotFound.__init__(self, "User {} not found".format(oid))
示例#5
0
 def __init__(self, repo, module, function):
     NotFound.__init__(
         self,
         "Function %(function)s not found in module %(repo)s/%(module)s" %
         locals())
示例#6
0
 def __init__(self, repo, module):
     NotFound.__init__(self,
                       "Module %(repo)s/%(module)s not found" % locals())