• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DO, replyWithException and oneway void message...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DO, replyWithException and oneway void message...


  • Subject: Re: DO, replyWithException and oneway void message...
  • From: Aurélien Hugelé <email@hidden>
  • Date: Thu, 20 Oct 2005 19:42:27 +0200

OK that was that...
if the message is oneway void, you can not return an exception with - (void)replyWithException:(NSException *)exception... too bad, but somewhat logic ;)


i'll have to make the server message the client asynchronously with something like server:(id)aServer remotelyRaiseException:(bycopy NSException*)anException...

if someone has another idea....


On 20 oct. 05, at 19:24, Aurélien Hugelé wrote:

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:
40gumitech.com


This email sent to email@hidden



_______________________________________________ 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
  • Follow-Ups:
    • Re: DO, replyWithException and oneway void message...
      • From: email@hidden
References: 
 >DO, replyWithException and oneway void message... (From: Aurélien Hugelé <email@hidden>)

  • Prev by Date: DO, replyWithException and oneway void message...
  • Next by Date: REPOST: loadNibNamed and retain counts
  • Previous by thread: DO, replyWithException and oneway void message...
  • Next by thread: Re: DO, replyWithException and oneway void message...
  • Index(es):
    • Date
    • Thread