[Enterprise Extensions only]

Throwing CORBA exceptions

A business object might wrapper existing logic which might not be written in C++ or might not use the exception paradigm. These business objects must convert the existing exceptions or error return codes to CORBA exceptions that can be returned to the client program.

Any non-CORBA exception thrown by the business object is automatically mapped to CORBA::UNKNOWN by the framework. This does not provide specific information to the client and severely limits the error recovery capability of the client program. These C++ exceptions should be mapped to appropriate CORBA exceptions by the business object.