[omniORB] UserException
Duncan Grisby
dgrisby@uk.research.att.com
Wed, 28 Jul 1999 14:31:34 +0100
On Wednesday 28 July, agonne - Andrew Gonnet wrote:
[...]
> throw MyException( 10, CORBA::string_dup( (const char*) "test" );
>
> when I get the SystemException thrown at the client.
Are you sure that you have declared that the operation can raise the
exception in the IDL? It should look something like:
interface I {
void op() raises (MyException);
};
If you don't declare the raises clause, you will get a CORBA::UNKNOWN
exception at the client.
HTH,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --