I have GUIs that talk to a Node Manager that talks to Nodes.
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?
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.
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:
Hm, now all I have to do is figure out how to send a
XMLRPC::FaultException. Anyone have any example code?
···
On 9/27/05, James Britt <james_b@neurogami.com> 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:
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?
···
On 9/27/05, James Britt <james_b@neurogami.com> 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: