Mercurial > lcfOS
comparison ide/compiler/errors.py @ 15:de004f808e56
Fixup in multidocument area stuff
author | windel |
---|---|
date | Tue, 15 Nov 2011 07:35:00 +0100 |
parents | 1784af239df4 |
children |
comparison
equal
deleted
inserted
replaced
11:607898120eb1 | 15:de004f808e56 |
---|---|
1 """ Error handling routines """ | 1 """ Error handling routines """ |
2 | 2 |
3 class CompilerException(Exception): | 3 class CompilerException(Exception): |
4 def __init__(self, msg, row=0, col=0): | 4 def __init__(self, msg, row=0, col=0, filename=None): |
5 self.msg = msg | 5 self.msg = msg |
6 self.row = row | 6 self.row = row |
7 self.col = col | 7 self.col = col |
8 self.filename = filename | |
8 def __repr__(self): | 9 def __repr__(self): |
9 return self.msg | 10 return self.msg |
10 def __str__(self): | 11 def __str__(self): |
11 return self.msg | 12 return self.msg |
12 | 13 |