MCPcopy Create free account
hub / github.com/LUX-Core/lux / JSONRPCException

Class JSONRPCException

test/functional/test_framework/authproxy.py:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55log = logging.getLogger("LuxRPC")
56
57class JSONRPCException(Exception):
58 def __init__(self, rpc_error):
59 try:
60 errmsg = '%(message)s (%(code)i)' % rpc_error
61 except (KeyError, TypeError):
62 errmsg = ''
63 Exception.__init__(self, errmsg)
64 self.error = rpc_error
65
66
67def EncodeDecimal(o):

Callers 2

__call__Method · 0.70
_get_responseMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected