Archived
This forum has been archived. Please start a new discussion on GitHub.
Throws Exception~
thelONE
in Help Center
Server throws a exception(defined in a SLICE), and client catches it, is it right? If does server have to catch the exception? Thanks a lot!
0
Comments
-
Thanks for completing your signature. To answer your first question, yes, the client will receive the exception raised by a servant if this exception is correctly defined in the Slice. Take a look at the manual for information on catching and raising exceptions, it's explained for each langague mapping, for example in section 6.13 and 8.6 for the C++ mapping. I'm not sure I understand your second question.
Benoit.0 -
/**
Thanks for completing your signature. To answer your first question, yes, the client will receive the exception raised by a servant if this exception is correctly defined in the Slice. Take a look at the manual for information on catching and raising exceptions, it's explained for each langague mapping, for example in section 6.13 and 8.6 for the C++ mapping. I'm not sure I understand your second question.
*/
^_^ Thank you! I think i understand it.
That is said, I don't need to catch exceptions throwed in server process, they will be catched by ICE runtime, and ICE runtime passes them to the client process, finally ICE runtime in client process re-throws those exceptions in client process?0
