override toString of Exception

David d at dav1d.de
Sun Oct 21 06:57:49 PDT 2012


>> when throwing this exception, I still get the stacktrace and not "bar",
>> is it possible to change that behaviour?
>
> Perhaps this function can help:
>
> http://dlang.org/phobos/core_runtime.html#traceHandler

Unfortunatly not, it expects a function which returns TraceInfo, but I 
simply wanna modify the resulting string (add escape sequences).



More information about the Digitalmars-d-learn mailing list