diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-24 11:51:12 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-24 11:51:12 +0100 |
| commit | af3a87ef16e2f4df9fa01a89fd709125c91188d6 (patch) | |
| tree | 506b54417e5e9f2ccb8e17b90642ad94060ccc91 /CrowIDE/src/SourceEditor/ParsingException.cs | |
| parent | 1293bc896bdbc6819999d17bda8286a6e1a792b0 (diff) | |
change namespace of CrowIDE to Crow.Coding, move editor source inside, crowIde wip
Diffstat (limited to 'CrowIDE/src/SourceEditor/ParsingException.cs')
| -rw-r--r-- | CrowIDE/src/SourceEditor/ParsingException.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/CrowIDE/src/SourceEditor/ParsingException.cs b/CrowIDE/src/SourceEditor/ParsingException.cs new file mode 100644 index 00000000..88c51c9b --- /dev/null +++ b/CrowIDE/src/SourceEditor/ParsingException.cs @@ -0,0 +1,22 @@ +using System; + +namespace Crow.Coding +{ + public class ParsingException : Exception + { + public int Line; + public int Column; + public ParsingException(Parser parser, string txt) + : base(string.Format("Parser exception ({0},{1}): {2}", parser.currentLine, parser.currentColumn, txt)) + { + Line = parser.currentLine; + Column = parser.currentColumn; + } + public ParsingException(Parser parser, string txt, Exception innerException) + : base(txt, innerException) + { + txt = string.Format("Parser exception ({0},{1}): {2}", parser.currentLine, parser.currentColumn, txt); + } + } +} + |