I want to have stack trace not for my exceptions only but also for any descendants of std::exception
std::exception
As I understand, stack trace is completely lost whe
On Linux this can be implemented by adding a call to backtrace() in the exception constructor to capture the stack trace into an exception's member variable. Unfortunately, it won't work for standard exceptions, only for the ones you define.