aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/ParsingException.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-28 00:51:17 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-28 00:51:17 +0100
commit19944e8637bdec5a873c8a5c690973d9ff134c6d (patch)
treeb9e3cb6d0d2ca627887a5d57a1f0a51dfe49ca8a /src/ParsingException.cs
parent95a6eea7095b9385289fe2448f93358640393345 (diff)
change styling grammar for value now enclose in double quote
Diffstat (limited to 'src/ParsingException.cs')
-rw-r--r--src/ParsingException.cs20
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)
+ {}
+ }
+}
+