Zecale - Reconciling Privacy and Scalability on Smart-Contract Chains  0.5
Reference implementation of the Zecale protocol by Clearmatics
Public Member Functions | Static Public Attributes | List of all members
zecale.cli.__main__.HandleRpcExceptions Class Reference
Inheritance diagram for zecale.cli.__main__.HandleRpcExceptions:
Inheritance graph
[legend]
Collaboration diagram for zecale.cli.__main__.HandleRpcExceptions:
Collaboration graph
[legend]

Public Member Functions

Any __call__ (self, *Any args, **Any kwargs)
 

Static Public Attributes

 default = AGGREGATOR_SERVER_ENDPOINT_DEFAULT,
 
string help = "Aggregator server endpoint "
 
 help
 

Detailed Description

A click group which handles uncaught RpcExceptions with a sensible message
(similar to ClickException).

Definition at line 26 of file __main__.py.

Member Function Documentation

◆ __call__()

Any zecale.cli.__main__.HandleRpcExceptions.__call__ (   self,
*Any  args,
**Any  kwargs 
)

Definition at line 31 of file __main__.py.

31  def __call__(self, *args: Any, **kwargs: Any) -> Any:
32  try:
33  return DefaultGroup.__call__(self, *args, **kwargs)
34  except RpcError as err:
35  print(f"error: {err.details()}") # pylint: disable=no-member
36  sys.exit(1)
37 
38 
39 @group(cls=HandleRpcExceptions, default_if_no_args=True, default="--help")
40 @option(

Member Data Documentation

◆ default

zecale.cli.__main__.HandleRpcExceptions.default = AGGREGATOR_SERVER_ENDPOINT_DEFAULT,
static

Definition at line 42 of file __main__.py.

◆ help [1/2]

string zecale.cli.__main__.HandleRpcExceptions.help = "Aggregator server endpoint "
static

Definition at line 43 of file __main__.py.

◆ help [2/2]

zecale.cli.__main__.HandleRpcExceptions.help
static

Definition at line 56 of file __main__.py.


The documentation for this class was generated from the following file: