List of usage examples for org.apache.solr.handler.dataimport DataImportHandlerException DataImportHandlerException
public DataImportHandlerException(int err, Throwable cause)
From source file:com.geodan.solr.dataimporthandler.FeatureEntityProcessor.java
License:Apache License
protected void initWFSDataSource(String typeName) { try {/*from w w w . j av a2 s . c o m*/ rowIterator = dataSource.getData(typeName); this.query = typeName; } catch (DataImportHandlerException e) { throw e; } catch (Exception e) { LOGGER.error("The WFS request for typeName '{}' failed with the following Exception: {}.", typeName, e); throw new DataImportHandlerException(DataImportHandlerException.SEVERE, e); } }
From source file:com.indexisto.dit.processor.LimitedSqlEntityProcessor.java
License:Apache License
protected void initQuery(String q) { try {/*w w w .j av a2 s .c o m*/ DataImporter.QUERY_COUNT.get().incrementAndGet(); rowIterator = dataSource.getData(q); query = q; } catch (final DataImportHandlerException e) { throw e; } catch (final Exception e) { LOG.error("The query failed '" + q + "'", e); throw new DataImportHandlerException(DataImportHandlerException.SEVERE, e); } }