aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/ParsingException.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-02 07:53:54 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-02 07:53:54 +0100
commit5bcd45c3ccc34edc68188a3acdb09e742b21aef3 (patch)
tree8370f0536cb66b6b32c70199f02d3234985ca0cf /src/ParsingException.cs
parente02ca10075b3441ad25b697db405ccc7d6436404 (diff)
CrowIDE wip, removed key repeat already handled by otk
Diffstat (limited to 'src/ParsingException.cs')
-rw-r--r--src/ParsingException.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ParsingException.cs b/src/ParsingException.cs
index e3bd51c9..eb85504d 100644
--- a/src/ParsingException.cs
+++ b/src/ParsingException.cs
@@ -6,14 +6,14 @@ namespace Crow.Coding
{
public int Line;
public int Column;
- public ParserException(int line, int column, string txt)
- : base(string.Format("Parser exception ({0},{1}): {2}", line, column, txt))
+ public ParserException(int line, int column, string txt, string source = null)
+ : base(string.Format("{3}:({0},{1}): {2}", line, column, txt, source))
{
Line = line;
Column = column;
}
- public ParserException(int line, int column, string txt, Exception innerException)
- : base(string.Format("Parser exception ({0},{1}): {2}", line, column, txt), innerException)
+ public ParserException(int line, int column, string txt, Exception innerException, string source = null)
+ : base(string.Format("{3}:({0},{1}): {2}", line, column, txt, source), innerException)
{}
}
}