The Boost Exception library supports transporting of arbitrary data in exception objects, and transporting of exceptions between threads.
Please check out the library's documentation to learn more.
Dynamic Exception Augmentation Library
https://boostorg.github.io/exception
#boost channel)Boost Exception is included in official Boost releases.
Copyright (C) 2006-2021 Emil Dotchevski. Distributed under the Boost Software License, Version 1.0.