Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Logic error: Exceptions and handling them #7

Open
Nielsbishere opened this issue May 5, 2020 · 0 comments
Open

Logic error: Exceptions and handling them #7

Nielsbishere opened this issue May 5, 2020 · 0 comments

Comments

@Nielsbishere
Copy link
Collaborator

Function signatures: noexcept should be used if logically, the function can't throw. And throw should be used to indicate a function should.

Handling cleanup: Since a System::log()->fatal can cause an exception, but won't terminate the program, there can be a lot of leaks. This can be fixed by using scoped variables like List or a wrapper class with a destructor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant