Capture and print exception backtrace
-
Move definitions (except getters and setters) to .cpp
. -
Remove unnecessary mutability of members. -
Only capture backtrace when ENABLE_BACKTRACE
environment variable is set and the exception is constructed with!code.isSuccess()
. -
Add a test that checks for the presence of a backtrace. -
Deal with chained exceptions.
Edited by Rosen Matev