2 ms·
Its the natural control flow for try-catch exceptions: try it out, and if it fails, clean up and move on That cleanup phase is generally some kind of rollback,
by setr 6y ago
Its the natural control flow for try-catch exceptions: try it out, and if it fails, clean up and move on
That cleanup phase is generally some kind of rollback, usually in the form of discarding whatever partially constructed datastructures (sometimes in the form of a savepoint and reverting, but thats rarer ime).
The other type of catch handling is to just force everything into some sane default state, to avoid having to care what specifically borked