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

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

Introduction

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

Prototype

int SEVERE

To view the source code for org.apache.solr.handler.dataimport DataImportHandlerException SEVERE.

Click Source Link

Usage

From source file:com.geodan.solr.dataimporthandler.FeatureEntityProcessor.java

License:Apache License

protected void initWFSDataSource(String typeName) {
    try {//from  www.  j  a va2s.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 {//from  w  w  w.j  a  v  a2 s.  co 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);
    }
}