I'm developing a framework that wraps many other third-party frameworks and unifies them under a single API. Since I can't be sure that other developer are catching every exception they man cause, I wrap every call to a third-party library with try/catch clauses.
The only problem is that I can't tell what queue/thread those libraries work on, and so of course I can't be sure I'll catch every exception.
So the question is how can I ensure I can every exception from a third-party library if I don't know what thread it's working on?
Thanks!