MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / __init__

Method __init__

src/network/proxy.py:13–19  ·  view source on GitHub ↗
(self, code=-1)

Source from the content-addressed store, hash-verified

11 errorCodes = ("UnknownError")
12
13 def __init__(self, code=-1):
14 self.code = code
15 try:
16 self.message = self.__class__.errorCodes[self.code]
17 except IndexError:
18 self.message = self.__class__.errorCodes[-1]
19 super(ProxyError, self).__init__(self.message)
20
21
22class GeneralProxyError(ProxyError):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected