Examples of GeoStoreException


Examples of it.geosolutions.geobatch.unredd.script.exception.GeoStoreException

            }
        } catch (GeoStoreException ex) {
            throw ex;
        } catch (Exception ex) {
            LOGGER.error("Error computing stats: " + ex.getMessage(), ex);
            throw new GeoStoreException("Error while setting StatsData", ex);
        }
    }
View Full Code Here

Examples of it.geosolutions.geobatch.unredd.script.exception.GeoStoreException

    public void insertStatsData(String statsDefName, String year, String month, String day, String content) throws GeoStoreException {
        try {
            RESTResource statsDataResource = createStatsDataResource(statsDefName, year, month, day, content);
            insert(statsDataResource);
        } catch (Exception e) {
            throw new GeoStoreException("Error while inserting StatsData: " + statsDefName, e);
        }
    }
View Full Code Here

Examples of it.geosolutions.geobatch.unredd.script.exception.GeoStoreException

        RESTResource res = createLayerUpdate(layername, year, month, day);
        try {
            insert(res);
        } catch (Exception e) {
            LOGGER.error("Error while inserting LayerUpdate: " + res, e);
            throw new GeoStoreException("Error while inserting LayerUpdate on Layer " + layername, e);
        }
    }
View Full Code Here

Examples of it.geosolutions.geobatch.unredd.script.exception.GeoStoreException

                    ret.add(r);
                }
                return ret;
            }
        } catch(Exception e) {
            throw new GeoStoreException("Error while searching in GeoStore", e);
        }
    }
View Full Code Here

Examples of it.geosolutions.geobatch.unredd.script.exception.GeoStoreException

    @Override
    public Long insert(RESTResource resource) throws GeoStoreException {
        try {
            return geoStoreClient.insert(resource);
        } catch(Exception e) {
            throw new GeoStoreException("Error while inserting in GeoStore", e);
        }
    }
View Full Code Here

Examples of it.geosolutions.geobatch.unredd.script.exception.GeoStoreException

    @Override
    public void updateData(long id, String data) throws GeoStoreException {
        try {
            geoStoreClient.setData(id, data);
        } catch (Exception ex) {
            throw new GeoStoreException("Exception while updating data", ex);
        }
    }
View Full Code Here

Examples of it.geosolutions.geobatch.unredd.script.exception.GeoStoreException

    @Override
    public void delete(long id) throws GeoStoreException {
        try {
            geoStoreClient.deleteResource(id);
        } catch (Exception ex) {
            throw new GeoStoreException("Error while deleting resource " + id, ex);
        }
    }
View Full Code Here

Examples of it.geosolutions.geobatch.unredd.script.exception.GeoStoreException

                    ? action.getShortResourceList()
                    : action.getResourceList();
            return ret == null ? Collections.EMPTY_LIST : ret;

        } catch(Exception e) {
            throw new GeoStoreException("Error while searching in GeoStore", e);
        } finally {
            FileUtils.deleteQuietly(tmpFile); // we're putting the temp file in a working dir, so this delete is probably useless
        }
    }
View Full Code Here

Examples of it.geosolutions.geobatch.unredd.script.exception.GeoStoreException

            SingleFileActionExecutor.execute(action, tmpFile);
            return null; // no id here
        } catch(Exception e) {
            LOGGER.error("Error while inserting in GeoStore: " + resource);
            throw new GeoStoreException("Error while inserting in GeoStore", e);
        } finally {
            FileUtils.deleteQuietly(tmpFile); // we're putting the temp file in a working dir, so this delete is probably useless
        }
    }
View Full Code Here

Examples of it.geosolutions.geobatch.unredd.script.exception.GeoStoreException

            GeostoreAction action = new GeostoreAction(geoStoreCfg);
            action.setTempDir(tempDir);

            SingleFileActionExecutor.execute(action, tmpFile);
        } catch (Exception ex) {
            throw new GeoStoreException("Exception while updating data", ex);
        } finally {
            FileUtils.deleteQuietly(tmpFile); // we're putting the temp file in a working dir, so this delete is probably useless
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.