5 /*ANTLR Translator Generator
6 * Project led by Terence Parr at http://www.jGuru.com
7 * Software rights: http://www.antlr.org/license.html
13 // ANTLR C# Code Generator by Micheal Jordan
14 // Kunle Odutola : kunle UNDERSCORE odutola AT hotmail DOT com
15 // Anthony Oguntimehin
17 // With many thanks to Eric V. Smith from the ANTLR list.
21 public class RecognitionException
: ANTLRException
23 public string fileName
; // not used by treeparsers
24 public int line
; // not used by treeparsers
25 public int column
; // not used by treeparsers
27 public RecognitionException() : base("parsing error")
35 * RecognitionException constructor comment.
36 * @param s java.lang.String
38 public RecognitionException(string s
) : base(s
)
46 * RecognitionException constructor comment.
47 * @param s java.lang.String
49 public RecognitionException(string s
, string fileName_
, int line_
, int column_
) : base(s
)
56 public virtual string getFilename()
61 public virtual int getLine()
66 public virtual int getColumn()
71 [Obsolete("Replaced by Message property since version 2.7.0", true)]
72 public virtual string getErrorMessage()
77 override public string ToString()
79 return FileLineFormatter
.getFormatter().getFormatString(fileName
, line
, column
) + Message
;