28 Apr
2005
28 Apr
'05
3:27 p.m.
On Thu, 2005-04-28 at 10:59 +0200, Remy Cool wrote:
described above. XMLRPC support exception handling, and I would like to use that mechanism rather then coding my own solution.
XMLRPC's definition of an exception is basically a tuple of an int and string. You'll have to do conversion from xmlrpclib's Fault object to Python exceptions yourself. "The <methodResponse> could also contain a <fault> which contains a <value> which is a <struct> containing two elements, one named <faultCode>, an <int> and one named <faultString>, a <string>." http://www.xmlrpc.com/spec