Cannot make a personalized exception
Stewart Gordon
smjg_1998 at yahoo.com
Fri May 11 14:38:54 PDT 2007
"Vermi" <aurelien.vermifuge at gmail.com> wrote in message
news:f22d6l$tfi$1 at digitalmars.com...
> I'm trying to make a custom Exception class with this :
>
>
> class MyException : Exception
> {
> static char[] s = "My Exception";
> this()
> {
> super(s);
> }
>
> char[] toString()
> {
> return s;
> }
> }
<snip>
Any particular reason you're overriding toString to do exactly what it
already does?
Stewart.
More information about the Digitalmars-d-learn
mailing list