Error Handling
Exceptions​
Despite their bad reputations, they are actually pretty good and you should consider using them.
Here is a very nice paper by Bjarne Stroustrup defending them : http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1947r0.pdf (answering to a discussion opened by https://www.youtube.com/watch?v=GC4cp4U2f2E)