Raising custom exceptions on remote objects
Mathis Gavillon <[email protected]> Fri, 27 Feb 2015 09:46:46 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CAOoYFkE=ixVtZ9D4PZuy=A44kU7ojqSN4YUqVhET4CimANyEXg@mail.gmail.com> |
--===============8121297563882233629== Content-Type: multipart/alternative; boundary=047d7b15ad0395c13605100de8e2 --047d7b15ad0395c13605100de8e2 Content-Type: text/plain; charset=UTF-8 Hi, I try to develop an application using Pyro4 for remote objects. I need that my shared objects can be able to raise custom exceptions (neither Pyro4 exceptions nor builtins exceptions). I use some libraries that raises their own exceptions. >From client side, when one of these exceptions are raised, Pyro raises another one : "Pyro4.errors.ProtocolError: unsupported serialized class: libvirt.libvirtError" is one example. I look into util Pyro4 module (dict_to_class method of SerizalizerBase class) which seems that only builtins and Pyro exceptions are supported. Is there any way to raise any custom exception for remote objects ? Thanks for your reply. Best regards, Mathis GAVILLON --047d7b15ad0395c13605100de8e2 Content-Type: text/html; charset=UTF-8 <div dir="ltr"><div><div><div>Hi,<br><br></div>I try to develop an application using Pyro4 for remote objects.<br></div>I need that my shared objects can be able to raise custom exceptions (neither Pyro4 exceptions nor builtins exceptions). I use some libraries that raises their own exceptions.<br><br><br></div><div>From client side, when one of these exceptions are raised, Pyro raises another one : "Pyro4.errors.ProtocolError: unsupported serialized class: libvirt.libvirtError" is one example.<br><br></div><div>I look into util Pyro4 module (dict_to_class method of SerizalizerBase class) which seems that only builtins and Pyro exceptions are supported.<br><br></div><div>Is there any way to raise any custom exception for remote objects ?<br><br></div><div>Thanks for your reply.<br><br></div><div>Best regards,<br><br></div>Mathis GAVILLON</div> --047d7b15ad0395c13605100de8e2-- --===============8121297563882233629== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ --===============8121297563882233629== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Pyro-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyro-core --===============8121297563882233629==--