« Previous | Next » 

Revision 2cc6781a

ID2cc6781aac8b53426d83d4cb8a42dc7c58efb8d6
Parent 1094acda
Child 035566e3

Added by Iustin Pop almost 15 years ago

rpc: Add a simple failure reporting framework

This patch adds a simple failure reporting tool, similar to bdev's
_ThrowError. In backend, we move towards the new-style RPC results (of
type (status, payload)) and thus functions which use this style can very
easily log and return the error message using this new function.

The exception is declared here and not in errors.py since it's local to
the node-daemon/backend combination.

Signed-off-by: Iustin Pop <>
Reviewed-by: Guido Trotter <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences