Mercurial > projects > mde
comparison mde/gui/exception.d @ 91:4d5d53e4f881
Shared alignment for dynamic content lists - finally implemented! Lots of smaller changes too.
Some debugging improvements.
When multiple .mtt files are read for merging, files with invalid headers are ignored and no error is thrown so long as at least one file os valid.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 16 Oct 2008 17:43:48 +0100 |
parents | 25cb7420dc91 |
children | 42e241e7be3e |
comparison
equal
deleted
inserted
replaced
90:b525ff28774b | 91:4d5d53e4f881 |
---|---|
30 } | 30 } |
31 | 31 |
32 /// Thrown when createWidget or a Widget class's this() is called with invalid data. | 32 /// Thrown when createWidget or a Widget class's this() is called with invalid data. |
33 class WidgetDataException : GuiException | 33 class WidgetDataException : GuiException |
34 { | 34 { |
35 this () { // Default, by Widget class's this | 35 this (Object o) { // Default, by Widget class's this / WDCheck |
36 super ("Bad widget data"); | 36 super ("Bad widget data for "~o.classinfo.name); |
37 } | 37 } |
38 this (char[] msg) { // From createWidget | 38 } |
39 | |
40 class ContentException : GuiException | |
41 { | |
42 char[] getSymbol () { | |
43 return super.getSymbol ~ ".content"; | |
44 } | |
45 this () { | |
46 super ("Unexpected content type"); | |
47 } | |
48 this (char[] msg) { | |
39 super (msg); | 49 super (msg); |
40 } | 50 } |
41 } | 51 } |