DO, replyWithException and oneway void message...
DO, replyWithException and oneway void message...
- Subject: DO, replyWithException and oneway void message...
- From: Aurélien Hugelé <email@hidden>
- Date: Thu, 20 Oct 2005 19:24:34 +0200
Hi list !
I hope any Cocoa Distributed Object Master (Chris Kane and Wade do
you hear me ?) can help me on this point :
i use Distributed Objects.
On my server, the connection delegate implements - (BOOL)connection:
(NSConnection *)conn handleRequest:(NSDistantObjectRequest *)doReq,
does some (crazy) logic to know if the originator of this message can
message us with *this* invocation [i omit complex details here, but
they are not important for the problem].
what i need, is to be able to return an exception to the client, to
be clearer : to raise an exception on the *client*.
from what the documentation says : - (void)replyWithException:
(NSException *)exception is perfect for that :)
i add that i make connection: handleRequest return YES, to show i
managed the invocation myself!
the only problem is that the exception is not raised on my client !
So, my question could not be simpler : is it because the message the
client sent to the server is (oneway void) qualified ?
because oneway void messages should not return anything,
replyWithException: does not work as it should be ?
Thanks to the (few) people that may help me on this problem
Aurelien
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden