Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
Error codes vs. exceptions
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Guest, post: 5025403"] something may have gone wrong with the attributions what if you have to do some specialised cleanup action? this sounds really wrong. Could you give a short example of code that has to do this? I usually find the code looks like this:- void perform () { try { action1 (); action2 (); action3 (); } catch (exception& e) { error_actions() } } in other words *all* of actionN must succeed for the function towork properly. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Error codes vs. exceptions
Top