Possible Duplicate:
In C++ what are the benefits of using exceptions and try / catch instead of just returning an error code?
I am wondering what's the pros & cons of using Try/Catch VS returning error code ?
Should I almost always prefere using try catch in c++ ?
Do you still use return error code in your project ? If so why ?