comparison src/impl/hoofbaby/util/exception.d @ 0:3425707ddbf6

Initial import (hopefully this mercurial stuff works...)
author fraserofthenight
date Mon, 06 Jul 2009 08:06:28 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3425707ddbf6
1 /**
2 * Hoofbaby -- http://www.dsource.org/projects/hoofbaby
3 * Copyright (C) 2009 Robert Fraser
4 *
5 * This program is free software; you can redistribute it andor
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16 module hoofbaby.util.exception;
17
18 import tango.core.Exception;
19
20 public class NotImplementedException : Exception
21 {
22 public this(char[] msg)
23 {
24 super(msg);
25 }
26
27 public this()
28 {
29 this("Not implemented");
30 }
31 }
32
33 public class IllegalOperationException : Exception
34 {
35 public this(char[] msg)
36 {
37 super(msg);
38 }
39
40 public this()
41 {
42 this("Illegal operation");
43 }
44 }
45
46 public class UnrecoverableException : Exception
47 {
48 public this(char[] msg)
49 {
50 super(msg);
51 }
52 }