[rules-users] parsing errors
hypnosat7
ablarbi at yahoo.fr
Tue Jul 31 07:07:09 EDT 2007
Hi,
I'm trying to recover errors information on parsing errors but I don't
know how to get a List<RecognitionException> from the DrlParser instance :
Reader drlReader2 = new
InputStreamReader(PackageValidator.class.getResourceAsStream(PACKAGE_DRL));
DrlParser drlParser = new DrlParser();
PackageDescr packageDescr = drlParser.parse(drlReader2);
List<RecognitionException> parsingErrors = new
ArrayList<RecognitionException>();
parsingErrors = drlParser.getErrors() ????
May be I can extends the DrlParser class with I new method like :
getErrorRecognition
Is it a good Idea ?
Thanks
--
View this message in context: http://www.nabble.com/parsing-errors-tf4192364.html#a11922150
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list