<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks Brain ,your point is correct and i got the result.<br><br>thanks<br>Ratheesh<br><br>--- On <b>Thu, 7/28/11, Brian Neal <i><bgneal@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Brian Neal <bgneal@gmail.com><br>Subject: Re: [omniORB] Regarding UserException catching Scenario.<br>To: "Ratheesh .R" <ratheeshr_2006@yahoo.com><br>Cc: "omniorb-list@omniorb-support.com" <omniorb-list@omniorb-support.com>, deepapp@cdactvm.in, ratheeshr@cdactvm.in, "Duncan Grisby" <duncan@grisby.org>, susanj@cdactvm.in<br>Date: Thursday, July 28, 2011, 7:58 PM<br><br><div id="yiv632072399"><p>You don't need to add a "method". You can just write a free function. It would be reusable for other uses as well. </p>
<p>On Jul 28, 2011 7:47 AM, "Ratheesh .R" <<a rel="nofollow" ymailto="mailto:ratheeshr_2006@yahoo.com" target="_blank" href="/mc/compose?to=ratheeshr_2006@yahoo.com">ratheeshr_2006@yahoo.com</a>> wrote:<br>
><br>
> Hi Duncan,<br>
><br>
><br>
> Yes Duncan you are right ,you Spot it correctly ,that was the real problem. Thanks for your support that was good enough to resolve the problem.<br>
><br>
><br>
> But in a scenario, where we want to add some additional methods such as to print the entire set of array of error messages like stringsequence of error message then how can we do that ?<br>
><br>
><br>
> For that purpose we tried with a child class of InvalidProcessImpl inherited from the InvalidProcess class and included the additional method in it to print the array of messages and thrown that instance.<br>
><br>
><br>
> Please suggest me what I need to do in such kind of scenario ,where I need to add additional method to display the entire set of array of messages with in one function at exception class ...?<br>
><br>
><br>
> Thanks<br>
><br>
> Ratheesh<br>
><br>
><br>
><br>
> --- On Thu, 7/28/11, Duncan Grisby <<a rel="nofollow" ymailto="mailto:duncan@grisby.org" target="_blank" href="/mc/compose?to=duncan@grisby.org">duncan@grisby.org</a>> wrote:<br>
>><br>
>><br>
>> From: Duncan Grisby <<a rel="nofollow" ymailto="mailto:duncan@grisby.org" target="_blank" href="/mc/compose?to=duncan@grisby.org">duncan@grisby.org</a>><br>
>> Subject: Re: [omniORB] Regarding UserException catching Scenario.<br>
>> To: "Ratheesh .R" <<a rel="nofollow" ymailto="mailto:ratheeshr_2006@yahoo.com" target="_blank" href="/mc/compose?to=ratheeshr_2006@yahoo.com">ratheeshr_2006@yahoo.com</a>><br>
>> Cc: "<a rel="nofollow" ymailto="mailto:omniorb-list@omniorb-support.com" target="_blank" href="/mc/compose?to=omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a>" <<a rel="nofollow" ymailto="mailto:omniorb-list@omniorb-support.com" target="_blank" href="/mc/compose?to=omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a>>, <a rel="nofollow" ymailto="mailto:deepapp@cdactvm.in" target="_blank" href="/mc/compose?to=deepapp@cdactvm.in">deepapp@cdactvm.in</a>, <a rel="nofollow" ymailto="mailto:ratheeshr@cdactvm.in" target="_blank" href="/mc/compose?to=ratheeshr@cdactvm.in">ratheeshr@cdactvm.in</a>, <a rel="nofollow" ymailto="mailto:susanj@cdactvm.in" target="_blank" href="/mc/compose?to=susanj@cdactvm.in">susanj@cdactvm.in</a><br>
>> Date: Thursday, July 28, 2011, 4:56 PM<br>
>><br>
>><br>
>> On Wed, 2011-07-27 at 00:13 -0700, Ratheesh .R wrote:<br>
>><br>
>> > 2)At the server side we have implemented ExecutableDeviceImpl and<br>
>> > InvalidProcessImpl objects<br>
>> > <br>
>> > and with in the ExecutableDeviceImpl object we have created the<br>
>> > function terminate () and throwing the UserException as like below , <br>
>><br>
>> Why have you implemented a subclass of the InvalidProcess exception?<br>
>> You are not meant to do that in the C++ language mapping. You are meant<br>
>> to directly use the InvalidProcess class that omniidl generated. The<br>
>> problem you are seeing is probably due to that.<br>
>><br>
>> Duncan.<br>
>><br>
>> -- <br>
>> -- Duncan Grisby --<br>
>> -- <a rel="nofollow" ymailto="mailto:duncan@grisby.org" target="_blank" href="/mc/compose?to=duncan@grisby.org">duncan@grisby.org</a> --<br>
>> -- <a rel="nofollow" target="_blank" href="http://www.grisby.org">http://www.grisby.org</a> --<br>
>><br>
>><br>
><br>
> _______________________________________________<br>
> omniORB-list mailing list<br>
> <a rel="nofollow" ymailto="mailto:omniORB-list@omniorb-support.com" target="_blank" href="/mc/compose?to=omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a><br>
> <a rel="nofollow" target="_blank" href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a><br>
><br>
</p>
</div></blockquote></td></tr></table>