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