diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-28 00:51:17 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-28 00:51:17 +0100 |
| commit | d5cf794076899803b9a34eb46d3b2e34f3e3cfbc (patch) | |
| tree | 783e637acbeab9c65777c345ae834a93ab7fc86a /src/ParsingException.cs | |
| parent | 8e82014a444722660692bbf730017651ddb6c88c (diff) | |
change styling grammar for value now enclose in double quoteStyleModif
Diffstat (limited to 'src/ParsingException.cs')
| -rw-r--r-- | src/ParsingException.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ParsingException.cs b/src/ParsingException.cs new file mode 100644 index 00000000..e3bd51c9 --- /dev/null +++ b/src/ParsingException.cs @@ -0,0 +1,20 @@ +using System; + +namespace Crow.Coding +{ + public class ParserException : Exception + { + 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)) + { + 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) + {} + } +} + |