Mercurial > projects > dang
annotate misc/Error.d @ 6:606a57c90a0b
Now lexing == as Equals
author | johnsen@johnsen-desktop |
---|---|
date | Fri, 18 Apr 2008 12:24:14 +0200 |
parents | 2168f4cb73f1 |
children | 2d28b21faad6 |
rev | line source |
---|---|
1 | 1 module misc.Error; |
2 | |
3 import misc.Location; | |
4 | |
6 | 5 import tango.core.Exception; |
6 | |
7 class Error : Exception | |
1 | 8 { |
6 | 9 char[] message; |
1 | 10 Location errorLocation; |
6 | 11 |
12 this(char[] message, Location errorLocation) | |
13 { | |
14 super(message ~ " at line " ~ errorLocation.toString); | |
15 this.message = message; | |
16 this.errorLocation = errorLocation; | |
17 } | |
1 | 18 } |