Throwable class design
Andrej Mitrovic
andrej.mitrovich at gmail.com
Thu Jan 31 17:24:11 PST 2013
On 2/1/13, H. S. Teoh <hsteoh at quickfur.ath.cx> wrote:
> +1. Like this idea, I'll have to start using it to avoid the headache of
> trying to figure out where something blew up when the stacktrace points
> to some deep obscure code inside Phobos.
Self pro-tip: Wrap it in a template so you can do:
alias ExcWrap!(myFunc, Exception1, Exception2) myFunc;
This would wrap myFunc and inject file+line of the call site if
Exception1 or Exception2 is caught.
More information about the Digitalmars-d
mailing list