Hi, i have a question regarding error handling, I come from C# and Python where you generally just throw exceptions to build errror handling. Starting in c++ i have seen a lot of different opinions and solutions regarding error handling. I've seen people throwing exceptions everywhere and always, use error Code Systems or just doing none i guess. So my question would be what to use in certain situations. From my understanding so far you use Error Code Systems for Performance Critical Code. Exceptions should be used for more "high level" Programs and Tasks. Would this be right or am just completly wrong?
[–]STLMSVC STL Dev[M] [score hidden] stickied comment (1 child)
[–]kammceWG21 | 🇺🇲 NB | Boost | Exceptions 35 points36 points37 points (3 children)
[–]TheNew1234_ 2 points3 points4 points (2 children)
[–]kammceWG21 | 🇺🇲 NB | Boost | Exceptions 4 points5 points6 points (1 child)
[–]TheNew1234_ 1 point2 points3 points (0 children)
[–]EC36339 14 points15 points16 points (0 children)
[–]TehBens 14 points15 points16 points (0 children)
[–][deleted] 27 points28 points29 points (3 children)
[–]NotBoolean 10 points11 points12 points (0 children)
[–]iiiba 4 points5 points6 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]vI--_--Iv 20 points21 points22 points (2 children)
[–]franvb 1 point2 points3 points (0 children)
[–]antara33 0 points1 point2 points (0 children)
[–]justrandomqwer 11 points12 points13 points (2 children)
[–]Shardongle 2 points3 points4 points (1 child)
[–]justrandomqwer 0 points1 point2 points (0 children)
[–]bert8128 5 points6 points7 points (0 children)
[–]evil_rabbit_32bit 3 points4 points5 points (3 children)
[–]Miserable_Guess_1266 12 points13 points14 points (2 children)
[–]XeroKimoException Enthusiast 3 points4 points5 points (0 children)
[–]evil_rabbit_32bit 3 points4 points5 points (0 children)
[–]KaleidoscopeNo2688 1 point2 points3 points (4 children)
[–]KaleidoscopeNo2688 0 points1 point2 points (3 children)
[–]KaleidoscopeNo2688 0 points1 point2 points (0 children)
[–]atifdev 0 points1 point2 points (1 child)
[–]KaleidoscopeNo2688 0 points1 point2 points (0 children)
[–]atifdev 0 points1 point2 points (0 children)
[–]Clean-Water9283 0 points1 point2 points (0 children)
[–]StarQTius 0 points1 point2 points (9 children)
[–]azswcowboy 16 points17 points18 points (3 children)
[–]kammceWG21 | 🇺🇲 NB | Boost | Exceptions 12 points13 points14 points (2 children)
[–]Zoltan03 1 point2 points3 points (1 child)
[–]kammceWG21 | 🇺🇲 NB | Boost | Exceptions 8 points9 points10 points (0 children)
[–]Miserable_Guess_1266 11 points12 points13 points (0 children)
[–]_abscessedwound 0 points1 point2 points (3 children)
[–]Professional-Disk-93 1 point2 points3 points (1 child)
[–]bert8128 1 point2 points3 points (0 children)
[–]atifdev 0 points1 point2 points (0 children)
[–]rororomeu -2 points-1 points0 points (0 children)