On Sunday, 14 March 2021 at 12:27:17 UTC, evilrat wrote: > On Sunday, 14 March 2021 at 09:35:40 UTC, frame wrote: > As a workaround maybe you could introduce special > DLLWrapperException with reference to original exception using > cast hack? This is unsatisfying. I want to switch-catch the exceptions also via their types.