[omniORB] How to throw exceptions in servant code

Duncan Grisby duncan at grisby.org
Sat May 3 14:40:05 BST 2008


On Friday 2 May, "Luo Yongheng" wrote:

> Using OMNIORB_THROW or just throw?

To throw user-declared exceptions, you must use just throw. If you are
throwing CORBA system exceptions, you can use either. The OMNIORB_THROW
macro is the thing that logs where exceptions are thrown from when you
run with -ORBtraceExceptions 1, so it's quite handy to use it in your
own code to see where your exceptions are coming from.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list