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 or

missing 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

Bases: grapheneapi.exceptions.RPCError

Inheritance diagram of vizapi.exceptions.MissingRequiredAuthority
private-bases

class NoSuchAPI

Bases: grapheneapi.exceptions.RPCError

Inheritance diagram of vizapi.exceptions.NoSuchAPI
private-bases

class UnhandledRPCError

Bases: grapheneapi.exceptions.RPCError

Inheritance diagram of vizapi.exceptions.UnhandledRPCError
private-bases

class ReadLockFail

Bases: grapheneapi.exceptions.RPCError

Inheritance diagram of vizapi.exceptions.ReadLockFail
private-bases

class UnknownNetwork

Bases: grapheneapi.exceptions.RPCError

Inheritance diagram of vizapi.exceptions.UnknownNetwork
private-bases