“In C++, whenever an exception is caught within a handler, the
information about the source of the exception is lost. The exact
source of the exception could provide a lot of vital information to
better handle it, or the information could be appended to the error
log for postmortem.“To deal with this, you can generate a stack trace in the
constructor of the exception object during the throw exception
statement. ExceptionTracer is a class that demonstrates this
behavior…”