On 10/17/11 13:53, azurIt wrote:
> Hi,
>
> is it somehow possible to access full traceback inside
> method_exception_object event of rpclib ? I was only albe to access fault
> string via 'ctx.out_error'. Thnx.
you need to override call_wrapper in either Application or ServiceBase
and do your own exception handling there.
e.g.
# changed the place of logger.exception where logger = \
# logging.getLogger(__name__)
class MyException(Fault):
pass
@classmethod
def call_wrapper(cls,ctx):
try:
ServiceBase.call_wrapper(ctx)
except MyException,e:
raise
except Exception,e:
logger.exception(e)
raise MyException("Server", "Unknown error")
best,
burak
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap