MCPcopy Create free account
hub / github.com/ElementsProject/elements / JSONRPCException

Class JSONRPCException

test/functional/test_framework/authproxy.py:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50log = logging.getLogger("BitcoinRPC")
51
52class JSONRPCException(Exception):
53 def __init__(self, rpc_error, http_status=None):
54 try:
55 errmsg = '%(message)s (%(code)i)' % rpc_error
56 except (KeyError, TypeError):
57 errmsg = ''
58 super().__init__(errmsg)
59 self.error = rpc_error
60 self.http_status = http_status
61
62
63def EncodeDecimal(o):

Callers 8

__call__Method · 0.70
batchMethod · 0.70
_get_responseMethod · 0.70
send_cliMethod · 0.70
importprivkeyMethod · 0.70
addmultisigaddressMethod · 0.70
importpubkeyMethod · 0.70
importaddressMethod · 0.70

Calls

no outgoing calls

Tested by 5

send_cliMethod · 0.56
importprivkeyMethod · 0.56
addmultisigaddressMethod · 0.56
importpubkeyMethod · 0.56
importaddressMethod · 0.56