You must not use the throw
operator directly, instead you should
use the function mico_throw()
defined in mico/throw.h
, which
is automatically included by IDL compiler generated code:
// ok mico_throw (CORBA::UNKNOWN()); // wrong throw CORBA::UNKNOWN();
will throw the CORBA system exception UNKNOWN
. User defined exceptions
are thrown the same way.