[Twisted-Python] Pass error (exception) message to XMLRPC client

Itamar Shtull-Trauring itamar at itamarst.org
Thu Apr 28 11:29:14 EDT 2005

On Thu, 2005-04-28 at 14:15 +0000, Jp Calderone wrote:

>   The behavior of that Fault is defined the _ebRender method of
> twisted.web.client.xmlrpc.XMLRPC.  Presently it is defined as:
>     def _ebRender(self, failure):
>         if isinstance(failure.value, Fault):
>             return failure.value
>         log.err(failure)
>         return Fault(self.FAILURE, "error")

Notice that this means that if you raise a xmlrpclib.Fault instance as
the exception that will be used, so you can do that instead of Python

More information about the Twisted-Python mailing list