Update exception-safe doc

Replace scope classes with structs.
Use meaningful function names instead of `abc`.
Improve formatting.