source: trunk/yao/share/antlr-2.7.7/lib/csharp/antlr.runtime/antlr/TokenStreamRecognitionException.cs @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 876 bytes
Line 
1using System;
2
3namespace antlr
4{
5        /*ANTLR Translator Generator
6        * Project led by Terence Parr at http://www.jGuru.com
7        * Software rights: http://www.antlr.org/license.html
8        *
9        * $Id:$
10        */
11       
12        //
13        // ANTLR C# Code Generator by Micheal Jordan
14        //                            Kunle Odutola       : kunle UNDERSCORE odutola AT hotmail DOT com
15        //                            Anthony Oguntimehin
16        //
17        // With many thanks to Eric V. Smith from the ANTLR list.
18        //
19
20        /*
21        * Wraps a RecognitionException in a TokenStreamException so you
22        * can pass it along.
23        */
24
25        [Serializable]
26        public class TokenStreamRecognitionException : TokenStreamException
27        {
28                public RecognitionException recog;
29               
30                public TokenStreamRecognitionException(RecognitionException re) :
31                                base(re.Message)
32                {
33                        this.recog = re;
34                }
35               
36                override public string ToString()
37                {
38                        return recog.ToString();
39                }
40        }
41}
Note: See TracBrowser for help on using the repository browser.