On 10/21/2012 01:51 PM, David wrote:
Am 21.10.2012 22:46, schrieb David:> > This behavior makes sense to me
because printing the backtrace should
> > concern the application, not the exception itself. If the application
> > does not want the backtrace printed, it can handle all of the
> except
Am 21.10.2012 22:46, schrieb David:> > This behavior makes sense to me
because printing the backtrace should
> > concern the application, not the exception itself. If the application
> > does not want the backtrace printed, it can handle all of the
> exceptions.
> >
> > Ali
>
> I just want t
> This behavior makes sense to me because printing the backtrace should
> concern the application, not the exception itself. If the application
> does not want the backtrace printed, it can handle all of the exceptions.
>
> Ali
I just want to add color to my exceptions and the easiest way is to
On 10/20/2012 09:42 AM, David wrote:
class BraLaException : Exception {
this(string s, string f=__FILE__, size_t l=__LINE__) {
super(s, f, l);
}
override string toString() {
return "bar";
}
}
when throwing this exception, I still get the stacktrace and not "bar",
is it possible to change that
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 t
On 2012-10-20 18:42, David wrote:
class BraLaException : Exception {
this(string s, string f=__FILE__, size_t l=__LINE__) {
super(s, f, l);
}
override string toString() {
return "bar";
}
}
when throwing this exception, I still get the stacktrace and not "b
class BraLaException : Exception {
this(string s, string f=__FILE__, size_t l=__LINE__) {
super(s, f, l);
}
override string toString() {
return "bar";
}
}
when throwing this exception, I still get the stacktrace and not "bar",
is it possible to change that behav