A blog on various topics in C++ programming including language features, standards, idioms, design patterns, functional, and OO programming.

Wednesday, January 02, 2013

Mixing Return Codes and Exceptions in C++

Happy New Year!!

Many projects use libraries developed by different teams, organizations, and open-source communities. It is not rare to see one project using dozens of external libraries where some libraries use return codes for reporting errors and others use exceptions.

When you find yourself in such a mix, what is the best way forward as far as error handling is concerned? Should you mix return codes and exceptions freely in your code? Should you choose one particular scheme over the other?

1 comment:

This really a awesome post about the plats forms of programming language. I fine here some good suggestion about programming. Thank for making a great post. For other user you may find other help from Assignmen2DO ,this also a helping sites for many a goog concept about programming.