Best Error Handling Approach
I have another question regarding C++ technique. When writing an
application from scratch, is it better to use exceptions for all
errors, use return codes via the function returns, or a combination of
both?
If you are using a library, I would almost see it a neccesity to use
both since libraries thrown exceptions in some case or return a NULL or
equivalent value.
Any thoughts?
0 Comments:
Post a Comment
<< Home