vizapi.exceptions¶
Module Contents¶
-
decode_rpc_error_msg(exc: Exception) → str¶ Helper function to decode the raised Exception and give it a python Exception class.
Exception text usually consists of two lines, in raw:
Assert Exception (10)\namount.amount > 0: Cannot transfer a negative amount (aka: stealing)\n\normissing required active authority (3010000)\nMissing Active Authority ["viz"]\n\n\nWe’re omitting the fist line and returning meaningful second line, stripping trailing newlines.
-
class
MissingRequiredAuthority¶ Bases:
grapheneapi.exceptions.RPCError
- private-bases
-
class
NoSuchAPI¶ Bases:
grapheneapi.exceptions.RPCError
- private-bases
-
class
UnhandledRPCError¶ Bases:
grapheneapi.exceptions.RPCError
- private-bases
-
class
ReadLockFail¶ Bases:
grapheneapi.exceptions.RPCError
- private-bases
-
class
UnknownNetwork¶ Bases:
grapheneapi.exceptions.RPCError
- private-bases