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\n
ormissing required active authority (3010000)\nMissing Active Authority ["viz"]\n\n\n
We’re omitting the fist line and returning meaningful second line, stripping trailing newlines.
-
class
MissingRequiredAuthority
¶
- private-bases
-
class
NoSuchAPI
¶
- private-bases
-
class
UnhandledRPCError
¶
- private-bases
-
class
ReadLockFail
¶
- private-bases
-
class
UnknownNetwork
¶
- private-bases