KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > TokenStreamRecognitionException


1 package persistence.antlr;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/license.html
6  *
7  */

8
9 /**
10  * Wraps a RecognitionException in a TokenStreamException so you
11  * can pass it along.
12  */

13 public class TokenStreamRecognitionException extends TokenStreamException {
14     public RecognitionException recog;
15
16     public TokenStreamRecognitionException(RecognitionException re) {
17         super(re.getMessage());
18         this.recog = re;
19     }
20
21     public String JavaDoc toString() {
22         return recog.toString();
23     }
24 }
25
Popular Tags