The preferred coding practice for handling errors in C++ and Java is using exceptions. The CORBA programming model supports this coding practice by using the standard try and throw logic of exception handling. Handling exceptions are a critical part of the programming model. The exceptions that are thrown must be understood and handled appropriately by application developers.
No matter how much care an object provider takes in implementing a business object, there are times when things go wrong. In these cases, a business object might need to throw an exception to the client to give the client the opportunity to recover from the error.
The detail of exception handling is given in the following topics:
For further information regarding C++ exceptions and their usage, see a standard C++ book.