Any way to peek at the exception currently being thrown?

Steven Schveighoffer schveiguy at gmail.com
Tue Jun 1 16:46:27 UTC 2021


On 6/1/21 12:36 PM, Andrei Alexandrescu wrote:
> One possible idiom is to use scope(failure) and take a look at the 
> exception being thrown.

I've wanted that too! Only thing I think you can do is the awkward 
try/catch and rethrow.

> 
> Is there a way to do that? If not, I assume it shouldn't be difficult to 
> add to druntime?

Not sure what you mean.

-Steve


More information about the Digitalmars-d mailing list