Error handling

Handle errors by:

  1. Writing detailed error descriptions to the server log file using JagLog.

  2. Coding one of these tasks:

    1. If the component is transactional, call JagDisallowCommit or JagRollbackWork (or you can throw the CORBA::TRANSACTION_ROLLEDBACK exception instead of calling JagRollbackWork).

    2. Throw a CORBA system or user-defined IDL exception to be raised by the client stub. See “Handling exceptions” for more information.

For more information about these methods, see Chapter 5, “C Routines Reference,” in the EAServer API Reference.