<p>You don&#39;t need to add a &quot;method&quot;.  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, &quot;Ratheesh .R&quot; &lt;<a href="mailto:ratheeshr_2006@yahoo.com">ratheeshr_2006@yahoo.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Duncan,<br>
&gt;<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Ratheesh<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --- On Thu, 7/28/11, Duncan Grisby &lt;<a href="mailto:duncan@grisby.org">duncan@grisby.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; From: Duncan Grisby &lt;<a href="mailto:duncan@grisby.org">duncan@grisby.org</a>&gt;<br>
&gt;&gt; Subject: Re: [omniORB] Regarding UserException catching Scenario.<br>
&gt;&gt; To: &quot;Ratheesh .R&quot; &lt;<a href="mailto:ratheeshr_2006@yahoo.com">ratheeshr_2006@yahoo.com</a>&gt;<br>
&gt;&gt; Cc: &quot;<a href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a>&quot; &lt;<a href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a>&gt;, <a href="mailto:deepapp@cdactvm.in">deepapp@cdactvm.in</a>, <a href="mailto:ratheeshr@cdactvm.in">ratheeshr@cdactvm.in</a>, <a href="mailto:susanj@cdactvm.in">susanj@cdactvm.in</a><br>

&gt;&gt; Date: Thursday, July 28, 2011, 4:56 PM<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, 2011-07-27 at 00:13 -0700, Ratheesh .R wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; 2)At the server side we have implemented ExecutableDeviceImpl and<br>
&gt;&gt; &gt; InvalidProcessImpl objects<br>
&gt;&gt; &gt; <br>
&gt;&gt; &gt; and with in the ExecutableDeviceImpl object we have created the<br>
&gt;&gt; &gt; function terminate () and throwing the UserException as like below , <br>
&gt;&gt;<br>
&gt;&gt; Why have you implemented a subclass of the InvalidProcess exception?<br>
&gt;&gt; You are not meant to do that in the C++ language mapping. You are meant<br>
&gt;&gt; to directly use the InvalidProcess class that omniidl generated. The<br>
&gt;&gt; problem you are seeing is probably due to that.<br>
&gt;&gt;<br>
&gt;&gt; Duncan.<br>
&gt;&gt;<br>
&gt;&gt; -- <br>
&gt;&gt; -- Duncan Grisby         --<br>
&gt;&gt;   -- <a href="mailto:duncan@grisby.org">duncan@grisby.org</a>     --<br>
&gt;&gt;    -- <a href="http://www.grisby.org">http://www.grisby.org</a> --<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; omniORB-list mailing list<br>
&gt; <a href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a><br>
&gt; <a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a><br>
&gt;<br>
</p>