[omniORB] Regarding UserException catching Scenario.

Duncan Grisby duncan at grisby.org
Thu Jul 28 16:39:42 BST 2011


On Thu, 2011-07-28 at 09:28 -0500, Brian Neal wrote:

[...]
> > 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 ?

> You don't need to add a "method".  You can just write a free function.
> It would be reusable for other uses as well. 

Indeed. A free function also has the advantage that it will work on the
client side when it catches an exception. Messing around with the class
thrown by the server won't change the fact that the client gets the
exception generated by the IDL compiler.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --





More information about the omniORB-list mailing list