PackageDescr pkg = drlParser.parse( drl.toString() );
if ( drlParser.hasErrors() ) {
addVerifierErrors( drlParser );
} else if ( pkg == null ) {
errors.add( new VerifierError( "Verifier could not form a PackageDescr from the resources that it was trying to verify." ) );
} else {
addPackageDescr( pkg );
addDrlData( drl.toString() );
}
reader.close();
} catch ( DroolsParserException e ) {
errors.add( new VerifierError( e.getMessage() ) );
} catch ( IOException e ) {
errors.add( new VerifierError( e.getMessage() ) );
}
}
}