Discussion:
[omniORB] How to throw exceptions in servant code
Luo Yongheng
2008-05-01 22:47:13 UTC
Permalink
Using OMNIORB_THROW or just throw?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20080502/c7975259/attachment.htm
Duncan Grisby
2008-05-03 18:39:57 UTC
Permalink
Post by Luo Yongheng
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 --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...