Added ability to order the execution of dictionary adapter behaviors.
[castle.git] / Experiments / Attic / Rook / Castle.Rook.Compiler / Parser / antlr / RecognitionException.cs
blob4726e136a47a0779ac78fa9a76957ee7cac57c7e
1 using System;
3 namespace antlr
5 /*ANTLR Translator Generator
6 * Project led by Terence Parr at http://www.jGuru.com
7 * Software rights: http://www.antlr.org/license.html
9 * $Id:$
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.
20 [Serializable]
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")
29 fileName = null;
30 line = - 1;
31 column = - 1;
35 * RecognitionException constructor comment.
36 * @param s java.lang.String
38 public RecognitionException(string s) : base(s)
40 fileName = null;
41 line = - 1;
42 column = - 1;
46 * RecognitionException constructor comment.
47 * @param s java.lang.String
49 public RecognitionException(string s, string fileName_, int line_, int column_) : base(s)
51 fileName = fileName_;
52 line = line_;
53 column = column_;
56 public virtual string getFilename()
58 return fileName;
61 public virtual int getLine()
63 return line;
66 public virtual int getColumn()
68 return column;
71 [Obsolete("Replaced by Message property since version 2.7.0", true)]
72 public virtual string getErrorMessage()
74 return Message;
77 override public string ToString()
79 return FileLineFormatter.getFormatter().getFormatString(fileName, line, column) + Message;