Mercurial > projects > mde
comparison mde/scheduler/exception.d @ 25:2c28ee04a4ed
Some minor and some futile efforts.
Played around with init functions, had problems, gave up and put them back.
Removed idea for multiple init stages; it's not good for performance or simplicity.
Adjusted exception messages.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 03 Apr 2008 17:26:52 +0100 |
parents | 838577503598 |
children | 611f7b9063c6 |
comparison
equal
deleted
inserted
replaced
24:32eff0e01c05 | 25:2c28ee04a4ed |
---|---|
18 | 18 |
19 import mde.exception; | 19 import mde.exception; |
20 | 20 |
21 /// Thrown when Init fails. | 21 /// Thrown when Init fails. |
22 class InitException : mdeException { | 22 class InitException : mdeException { |
23 // NOTE: if symbol is final, it can't be modified in the static this(), but as const it can | |
24 static const char[] symbol; | |
25 static this () { symbol = super.symbol ~ ".Init"; } | |
26 char[] getSymbol () { | 23 char[] getSymbol () { |
27 return symbol; | 24 return super.getSymbol ~ ".Init"; |
28 } | 25 } |
29 | 26 |
30 this (char[] msg) { | 27 this (char[] msg) { |
31 super(msg); | 28 super(msg); |
32 } | 29 } |