Re: How to get the error position in QueryParser/ParseException

2008-06-10 Thread Chris Hostetter
: : When using "new QueryParser(...).parse(...)" I'd like to get the : position where the error was detected (to show it to the user). : See (and run) the code below. : : This is not possible via "e.currentToken" (that's null). Nevertheless : this position will be printed within the getMessage(

How to get the error position in QueryParser/ParseException

2008-05-23 Thread Stefan Trcek
Hello When using "new QueryParser(...).parse(...)" I'd like to get the position where the error was detected (to show it to the user). See (and run) the code below. This is not possible via "e.currentToken" (that's null). Nevertheless this position will be printed within the getMessage() method