Catching an exception that is nested into another exception
The ExceptionUtils#getRootCause() method can come in very handy in such situations.
The ExceptionUtils#getRootCause() method can come in very handy in such situations.
There is one use for std::nested exception, and only one use (as far as I have been able to discover). Having said that, it’s fantastic, I use nested exceptions in all my programs and as a result the time spent hunting obscure bugs is almost zero. This is because nesting exceptions allow you to easily … Read more