M
Martin Hart
Hi all,
I have an object that lives in a server process (it includes DRbUndumped) and
responds to requests from clients. What I would like to do is to be able to
raise an exception from one of the server methods, and have that exception
caught in the client process.
What appears to happen at the moment is that as soon as the server method
raises an exception, the client's connection to it is closed - the client
receives a "#<DRb:RbConnError: connection closed>".
Ideally I'd like the exception to be transported to the client and then raised
there - i do not want the connection to be closed. Is that doable or do I
need to avoid the use of exceptions from my "exported" methods?
TIA
Martin
I have an object that lives in a server process (it includes DRbUndumped) and
responds to requests from clients. What I would like to do is to be able to
raise an exception from one of the server methods, and have that exception
caught in the client process.
What appears to happen at the moment is that as soon as the server method
raises an exception, the client's connection to it is closed - the client
receives a "#<DRb:RbConnError: connection closed>".
Ideally I'd like the exception to be transported to the client and then raised
there - i do not want the connection to be closed. Is that doable or do I
need to avoid the use of exceptions from my "exported" methods?
TIA
Martin