override toString of Exception

David d at dav1d.de
Sat Oct 20 09:42:18 PDT 2012


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 behaviour?


More information about the Digitalmars-d-learn mailing list