pointcut = "target(com.m4f.utils.feeds.parser.ifc.ISchoolsParser) && args(provider, dump))",
argNames="provider,dump, error", throwing= "error")
public void registerProviderError(Provider provider, Dump dump, Throwable error) {
LOGGER.severe("Registering feed processing error in provider " + provider.getName());
if(dump != null) {
ParserErrorEvent parserError = this.eventService.createParserError();
parserError.setEntityClass(provider.getClass().getName());
parserError.setEntityId(provider.getId());
parserError.setCause(new Text(StackTraceUtil.getStackTrace(error)));
parserError.setWhen(Calendar.getInstance().getTime());
parserError.setDumpId(dump.getId());
try {
this.eventService.save(parserError);
} catch(Exception e) {
LOGGER.severe(StackTraceUtil.getStackTrace(e));
}