rrefutil: generically wrap any errback from callRemote() in a ServerFailure instance
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 31 Dec 2008 21:28:30 +0000 (14:28 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 31 Dec 2008 21:28:30 +0000 (14:28 -0700)
commitc00d20361f637047bf53d1e9394ba5b3a2b9c9eb
treee9434a43199aff5275cb36a36c1a1f2e341f9820
parent3a47031a51ed264afc05be0584d4fd68f90cefcf
rrefutil: generically wrap any errback from callRemote() in a ServerFailure instance
This facilitates client code to easily catch ServerFailures without also catching exceptions arising from client-side code.
See also:
http://foolscap.lothar.com/trac/ticket/105 # make it easy to distinguish server-side failures/exceptions from client-side
src/allmydata/util/rrefutil.py