comparison mde/mergetag/exception.d @ 4:9a990644948c

Many changes: upgraded to tango 0.99.4, reorganised mde/input, large changes to mde/mergetag and mde/init, separated off test/MTTest.d and more. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 06 Jan 2008 17:38:51 +0000
parents 18491334a525
children b544c3a7c9ca
comparison
equal deleted inserted replaced
3:485c98ecbd91 4:9a990644948c
18 /** Thrown on file IO errors. */ 18 /** Thrown on file IO errors. */
19 class MTFileIOException : MTException { 19 class MTFileIOException : MTException {
20 this () {} 20 this () {}
21 } 21 }
22 22
23 /** Thrown onunknown format errors; when reading or writing and the filetype cannot be guessed. */ 23 /** Thrown on unknown format errors; when reading or writing and the filetype cannot be guessed. */
24 class MTFileFormatException : MTException { 24 class MTFileFormatException : MTException {
25 this () {} 25 this () {}
26 } 26 }
27 27
28 /** Thrown when a string ID is parsed but cannot be found in the lookup table, hence cannot be used 28 /** Thrown when a string ID is parsed but cannot be found in the lookup table, hence cannot be used
29 * as an ID. It should always be caught and handled gracefully (by ignoring the tag or section 29 * as an ID. It should always be caught and handled gracefully (by ignoring the tag or section
30 * involved). 30 * involved). */
31 */
32 class MTStringIDException : MTException { 31 class MTStringIDException : MTException {
33 this () {} 32 this () {}
34 } 33 }
35 34
36 /** Thrown by classes implementing DataSection when addTag is called with an unrecognised type string. 35 /** Thrown by addTag (in classes implementing dataset.DataSection) when a tag is read with an
37 */ 36 * unrecognised type field. */
38 class MTUnknownTypeException : MTException { 37 class MTUnknownTypeException : MTException {
39 this () {} 38 this () {}
39 this (char[] msg) {
40 super (msg);
41 }
40 } 42 }
43
44 /** Thrown by addTag (in classes implementing dataset.DataSection) when a data parsing error occurs
45 * (really just to make whoever called addTag to log a warning saying where the error occured). */
46 class MTaddTagParseException : MTException {
47 this () {}
48 }
49
50 /// Thrown by TypeView.parse on errors.
51 class MTBadTypeStringException : MTException {
52 this () {}
53 }
54
55 /// Thrown by TextWriter.indexTable (only in debug mode).
56 class MTBadIDStringException : MTException {
57 this () {}
58 }
59
60 /// Thrown by *Writer.write.
61 class MTNoDataSetException : MTException {
62 this (char[] msg) {
63 super(msg);
64 }
65 }