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).