I have seen some solutions to throwing exceptions in nogc code, but only toy examples, like
https://p0nce.github.io/d-idioms/#Throwing-despite-@nogc
The solution sort of works, but doesn't show how to pass a custom string to the exception, and the text says "This trick is a dirty Proof Of Concept. Just never do it.".
Is there a solution?