01: package antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.cs.usfca.edu
05: * Software rights: http://www.antlr.org/license.html
06: */
07:
08: /**
09: * Wraps a RecognitionException in a TokenStreamException so you
10: * can pass it along.
11: */
12: public class TokenStreamRecognitionException extends
13: TokenStreamException {
14: public RecognitionException recog;
15:
16: public TokenStreamRecognitionException(RecognitionException re) {
17: super (re.getMessage());
18: this .recog = re;
19: }
20:
21: public String toString() {
22: return recog.toString();
23: }
24: }
|