Re:You’re better off using Exceptions
by nemetroid on Monday February 03, 2020 @06:13PM
(#22230428)
> My reaction to 'the test fails because map::at threw an exception': stupid STL!!
> A core dump would be so much easier to analyze..
Uncaught exceptions call terminate(), which by default calls abort(), which generates a core dump. So if you want a core dump, just avoid catching the exception.
Re:You’re better off using Exceptions
by renox on Tuesday February 04, 2020 @04:57AM
(#22233946)
Except that I didn't put all these "catch"..
But you're right, that's what should be done (or at least, rethrowing the exception from the catch block).
> A core dump would be so much easier to analyze..
Uncaught exceptions call terminate(), which by default calls abort(), which generates a core dump. So if you want a core dump, just avoid catching the exception.