next up previous
Next: Catching Exceptions Up: Exceptions Previous: Exceptions

Throwing Exceptions

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.



MICO
Tue Nov 10 11:04:45 CET 1998