blob: e3bd51c90b2f2946705a88723010e28f2ad548a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)
{}
}
}
|