From: Joe Van Dyk Date: 2005-10-07T05:11:08+09:00 Subject: Re: raising exceptions across DRb and XMLRPC On 9/27/05, James Britt wrote: > Florian Gro� wrote: > > Joe Van Dyk wrote: > > > >> Say, an error happens on a Node. How should I transmit that error > >> back across DRb and XMLRPC to the GUIs? Does XMLRPC do well with > >> exceptions? Should I come up with my own custom error-reporting > >> scheme? > > > > > > It is no problem with DRb as it can safely transport exceptions across > > the network. No special casing is needed. > > > > I'm not sure about XMLRPC. > > Pretty sure XML-RPC has a defined means for expressing exceptions, or > faults: > > > http://www.xmlrpc.com/spec Yes, so it does. My ClusterManager class needs to throw Exceptions. The ClusterManager class doesn't really know anything about XMLRPC, as it's being wrapped by a ClusterManagerServer class that starts the xmlrpc server and adds a ClusterManager object to the xmlrpc server's handler. Should the ClusterManager class throw XMLRPC excepts? Or plain Ruby ones?