Orig Article Link:   http://www.drdobbs.com/cpp/practical-c-error-handling-in-hybrid-env/197003350   Exception-safe  code is notoriously difficult to get right in C++. Still, it is the  recommended way to go, at least according to C++ gurus. And for a  reason. If you write nontrivial programs or libraries in C++, you should  probably study exception handling and use it where appropriate.   In  the real world, however, exception handling is not always possible,  viable, or used by anyone. So what do you do if you need to integrate or  interoperate with software that doesn't use exception handling? In this  article, I discuss situations where exception handling is not used and  why. I then demonstrate how to interface your exception-handling code to  other software components that practice a different error-handling  method.   Error-Handling Strategies in C++   There  are different ways to report and handle errors in C/C++. (You have to  consider C because C++ is—more or less—a supe...