On 2/1/13, H. S. Teoh <[email protected]> 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.

Reply via email to