Example usage for org.apache.solr.handler.dataimport DataImportHandlerException DataImportHandlerException

List of usage examples for org.apache.solr.handler.dataimport DataImportHandlerException DataImportHandlerException

Introduction

In this page you can find the example usage for org.apache.solr.handler.dataimport DataImportHandlerException DataImportHandlerException.

Prototype

public DataImportHandlerException(int err, Throwable cause) 

Source Link

Usage

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);
    }
}