But i like how exceptions are handled in rpclib i just additionaly want to send an e-mail when something wrong happens + full traceback. Isn't possible with current implementation ?
azur ______________________________________________________________ > Od: "Burak Arslan" <[email protected]> > Komu: "[email protected]" <[email protected]> > Dátum: 17.10.2011 13:17 > Predmet: Re: [Soap-Python] Full traceback in method_exception_object inrpclib > >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. > >class MyException(Fault): > pass > >@classmethod >def call_wrapper(cls,ctx): > try: > ServiceBase.call_wrapper(ctx) > except MyException,e: > logger.exception(e) > raise > except 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
