]> www.infradead.org Git - users/dhowells/kafs-utils.git/commit
rxgen: Emit individual exception classes for defined abort codes and raise them
authorDavid Howells <dhowells@redhat.com>
Wed, 9 Apr 2014 22:38:32 +0000 (23:38 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 9 Apr 2014 22:38:32 +0000 (23:38 +0100)
commit200f68438e230ea96138e193885ab6f609a33b3b
tree7d1e333ad5a7b610d77a280ee8fc101ce3382c2c
parentad0e3491d321d9c89fc54fc30f7c5784c100973f
rxgen: Emit individual exception classes for defined abort codes and raise them

Emit an exception class for each defined abort code and raise the appropriate
exception when an abort is received.  Each set of classes is subclassed from a
package-specific class (eg. AbortVL_NOENT -> VLAbort) and each
package-specific class is subclassed from a generic class (eg. VLAbort ->
RemoteAbort) so that all package codes can be trapped in one statement and all
remote aborts can be trapped together.

If an unknown code is received, then this is raised as RemoteAbort only.

RxRPC/rxgen codes are supplied now also in the rxgen.xg file under the RXGEN
package name.

KAA/KAM/KAT codes are under the KA package.

Signed-off-by: David Howells <dhowells@redhat.com>
py_rxgen.c
py_rxgen.h
rpc-api/ka.xg
rpc-api/rxgen.xg [new file with mode: 0644]
rxgen/emit_py_module.pm
rxgen/emit_py_sync_funcs.pm
rxgen/rxgen.pl
suite/commands/vos/listaddrs.py